All jobs / Backend developer / Architecture
Backend developer interview question · 0–1 years
Why would you put a queue between two parts of a system?
The strongest answer
To decouple them: the producer finishes fast and the consumer works at its own pace, spikes are absorbed, and a consumer being down does not lose the work — at the cost of the result arriving later
Why it works
Right. Decoupling and absorbing spikes, paid for in latency.
What a good answer covers
- Decouples producer and consumer.
- Absorbs spikes.
- Survives consumer outages.
- Result becomes asynchronous.
Answers that fall short
- Close, but not the strongest: To make the two parts run faster
The producer feels faster; total work is the same. - Weak: Because queues are a microservices best practice
Only where later-is-fine; not a default. - Red flag: To store data permanently
Queues hold work in flight, not records.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Data science / ML / AI
- Engineering manager / tech lead
- Solutions / cloud architect
- AI engineer
More Architecture questions
- What is the difference between latency and throughput?
- An interviewer asks for p99 latency. What does that mean and why ask for it?
- How do you estimate storage for 100 million short URLs?
- What does a CDN do for a web application?
- Why would a class take its database client as a constructor parameter instead of creating one inside itself?
- The interviewer asks: “Should this service be CQRS?” Strongest answer?
- The interviewer asks: “Event-driven or request/response for “order placed → email + warehouse”?” Strongest…
- The interviewer asks: “How do you change an event payload that old consumers still read?” Strongest answer?