Technical Senior Level

When would you use an event-driven architecture or message queue instead of synchronous API calls? What are the trade-offs?

Quick Tip

Start with the problem you are solving: decoupling, load levelling, or async processing. Then discuss the trade-offs you accept: eventual consistency, debugging complexity, and delivery guarantees.

What good answers include

Strong answers identify good use cases: decoupling services, handling spiky workloads, long-running processes, eventual consistency scenarios, and audit trails. Trade-offs include: debugging complexity, eventual consistency challenges, message ordering, idempotency requirements, and operational overhead of running queue infrastructure. Best candidates discuss specific technologies (RabbitMQ, Kafka, SQS) and when each fits.

What interviewers are looking for

Senior architecture question. Tests distributed systems thinking. Candidates who default to synchronous calls for everything will hit scaling walls. Those who use queues everywhere create unnecessary complexity. Look for judgment about when each approach fits.

← All Software Developer questions