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

Propose a backpressure/flow-control design when a fast producer floods a slow consumer connected via a queue system. Include mechanisms on both producer and broker sides (bounded queues, rate-limiting, pause/resume, token buckets), and describe how to implement graceful degradation while preserving important messages.

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.

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.

MediumSystem Design
92 practiced

Design a notifications delivery service that sends email and push notifications, must handle 10,000 events/sec, guarantees at-least-once delivery, and supports per-user ordering of notifications. Describe components, how you will achieve ordering per user, deduplication strategy, backpressure handling, and multi-region replication considerations.

HardTechnical
101 practiced

Design graceful degradation strategies for an event-driven notification subsystem when downstream push services (APNs/FCM/email API) are rate-limited or unavailable. Include queueing, prioritization, circuit breakers, fallbacks, retry policies, and how to communicate delays to users and product teams.

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.