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
85 practiced

Design a Dead Letter Queue (DLQ) processing workflow. Requirements: safe reprocessing of failed messages, visibility into failure reasons, quarantine for poison messages, and automation to replay or archive. Explain checks to run before re-enqueueing (idempotency, schema compatibility), and how to monitor DLQ health.

MediumTechnical
157 practiced

A producer team wants to remove a field that several downstream consumer teams currently read from an event. Two consumer teams say removing it will break their service; a third says they don't use it. Walk through how you would let the producer team make this change (and future ones like it) without breaking consumers who depend on the old shape, and what you would need in place beforehand for that to be possible.

MediumTechnical
105 practiced

How would you choose a Kafka partitioning key for a user-events topic such that ordering is preserved per user but partitions are balanced across the cluster? Discuss hashing strategies, handling hot users, and approaches for multi-tenant fairness when some tenants generate far more events than others.

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.

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.