InterviewDB Question

Streams: Implement Concurrent Data Stream Processing With Backpressure and Fan-Out

Question Details

Problem Build a simple streaming pipeline framework. A Stream accepts items, applies a transform function, and fans out to multiple downstream consumers. If a consumer is slow (its internal queue is full), the producer should block (backpressure) rather than drop items. Example: Follow-ups What synchronization primitives do you use — threading.Queue, asyncio.Queue, or semaphores? If one consumer is permanently slow, should it block all other consumers? How do you design around this? How would yo…

Full Details

🔒

Unlock all Sierra questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a sierra interview during the phone round.

It covers the following topics: Coding, Queue, Phone, Onsite .