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

You must choose between Apache Kafka and RabbitMQ as the backbone for an internal eventing platform. Constraints: peak 50k events/sec, need durable replay for analytics, many consumers require at-least-once delivery, and some consumers require ordered delivery per key. List evaluation criteria, recommend one option with justification, and describe mitigations for its weaknesses.

HardSystem Design
95 practiced

Design a multi-tenant messaging platform offering per-tenant isolation, quotas, topic namespaces, and fair-share consumption across tenants. The platform must support 10k tenants with per-tenant throughput limits and the ability to migrate a tenant between clusters. Discuss tenancy models (shared vs dedicated), isolation mechanisms, authentication/authorization, quota enforcement, and billing metrics to capture usage.

MediumTechnical
78 practiced

You are on call for an asynchronous data-ingestion pipeline with an SLA to persist every event within 60 seconds. Design the observability and alerting strategy: what would you track, what would actually be worth paging someone for, and what would your on-call runbook tell them to check first?

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.

HardTechnical
81 practiced

Design a coordination mechanism to schedule distributed batch tasks via events so that exactly N out of M workers pick up a task and no task is processed more than once. Discuss leader election, distributed locks, use of Kafka partitioning vs ZooKeeper/etcd, and failure handling for workers that die mid-task.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.