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.

HardTechnical
87 practiced

You must guarantee strict global ordering of financial transactions across a multi-tenant system at very high throughput. Evaluate feasibility and, if strict global ordering is infeasible, propose practical alternative designs (per-tenant ordering, causal guarantees, reconciliation approaches) that balance ordering, throughput, and tenant isolation.

HardTechnical
76 practiced

In an event-sourced system, describe how you would implement backup, restore, and reprocessing strategies when event schemas evolve (adding fields, removing fields, changing semantics). Address immutability of events, event versioning, enrichment vs transformation, tools and practices for replaying events into new projections, and safe rollbacks if reprocessing causes issues.

MediumTechnical
78 practiced

For an event consumer that fails intermittently calling an external API, design a retry and DLQ strategy that includes exponential backoff with jitter, a maximum number of retries, and escalation to a DLQ. Provide pseudocode (language-agnostic) or a flow description that prevents thundering-herd effects and supports observability of intermediate retry attempts.

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.

EasyTechnical
90 practiced

Explain the difference between publish-subscribe and point-to-point (producer-consumer) messaging patterns. Provide concrete scenarios where pub/sub is a better fit (e.g., notifications, analytics) and where queues are preferable (e.g., work queues, task processing), particularly in multi-tenant SaaS and event-driven microservice architectures.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.