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.

EasyTechnical
77 practiced

Design a simple asynchronous pipeline for transactional email delivery. Requirements: up to 100k emails/day peak, under 5s from user action to 'queued', resilience to SMTP outages, duplicate prevention, and visibility for a sales dashboard showing queued/sent/failed counts. Choose components (for example SNS+SQS, worker fleet, SES) and describe message flow, retry/DLQ behavior, and monitoring.

MediumTechnical
82 practiced

Explain backpressure and flow-control techniques across networked services and message brokers: TCP flow control, HTTP/2 flow control, reactive streams (request-n), credit-based broker flow control, and producer-side throttling. For each technique explain when it's most appropriate and how you'd design end-to-end controls to prevent OOMs and cascading failures.

MediumTechnical
106 practiced

Event-sourcing stores all state changes as events. Discuss the trade-offs between storing only events versus introducing periodic snapshots. As a data engineer, explain snapshotting frequency, snapshot storage, snapshot validation, rehydration cost, and strategies for compaction or archival to control event-store growth.

EasyTechnical
85 practiced

In a shopping-cart checkout flow, decide which sub-steps should be synchronous (e.g., payment authorization) and which can be asynchronous (e.g., sending confirmation email, analytics). Explain how your choices affect user experience, system correctness, error-handling, and eventual consistency guarantees.

EasyTechnical
92 practiced

Describe delivery semantics for messaging systems: at-most-once, at-least-once, and exactly-once. For each semantic, explain the practical impact on data loss and duplication, what guarantees the broker provides versus what the application must ensure, and give a realistic example where that semantic is appropriate (e.g., analytics ingestion vs financial transactions).

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.