InterviewStack.io LogoInterviewStack.io

Event-Driven Architecture and Asynchronous Messaging Questions

Designing systems around events and message passing: publish/subscribe, message queues, event streaming, choreography versus orchestration, and decoupling producers from consumers. Covers delivery semantics (at-least-once, at-most-once), ordering, backpressure, dead-letter handling, and the operational tradeoffs of asynchronous flows. Includes async processing patterns for offloading slow work.

MediumTechnical
78 practiced

A customer needs an immutable audit trail and the ability to rebuild multiple read models quickly. Compare event sourcing + CQRS against a traditional relational database augmented with Change Data Capture (CDC). Discuss complexity, operational cost, replayability, schema evolution, developer ergonomics, and scenarios where event sourcing is or is not justified.

EasyTechnical
84 practiced

What is a Dead Letter Queue (DLQ)? Describe a DLQ-based architecture for handling poison messages in a task processing system, including how you would instrument metrics and alerts, automate quarantining, and implement a manual review and replay workflow. Mention any retention and security considerations.

MediumSystem Design
103 practiced

Design a cost-efficient architecture for processing batch large-media file uploads using event-driven workflows in the cloud. Consider storage tiering, triggering via object storage events, compute scaling (serverless vs spot instances), streaming transforms vs copying, and minimizing egress and cold-start costs.

MediumTechnical
82 practiced

Design an AWS Step Functions state machine (provide JSON or YAML) for an order-processing workflow that performs payment authorization, inventory reservation, an asynchronous external fulfillment call, retries with exponential backoff for transient errors, and a human approval step for orders above a configurable dollar threshold. Include error handling, compensation steps for partial failures, and how you would persist long-running state.

HardSystem Design
87 practiced

Design an architecture to deliver in-app notifications with under 100ms end-to-end latency for 100k concurrent active users, supporting mobile push and web sockets. Discuss pub/sub design, push gateway scaling, connection management (websocket pooling), batching strategies, trade-offs between latency and throughput, and fallback delivery for unreachable devices.

Unlock Full Question Bank

Get access to all Event-Driven Architecture and Asynchronous Messaging interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.