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

You must recommend a message broker for a global streaming pipeline used by developer tools requiring low-latency delivery, at-least-once semantics, and variable throughput. Compare managed Kafka, Google Pub/Sub (or similar), and RabbitMQ. Discuss throughput and latency characteristics, operational overhead, message ordering and delivery semantics, cross-region replication, client library maturity, and total cost of ownership. Give decision criteria and a monitoring plan.

MediumSystem Design
85 practiced

Design a service that consumes legacy messages, transforms them to a new schema, and publishes them to a new topic with minimal downtime. Explain how you will ensure at-least-once or exactly-once semantics for the transformed output, how to handle schema drift, and how to roll back if problems appear.

MediumTechnical
85 practiced

You are the technical lead responsible for event contract governance across multiple teams. Design a process and tooling to manage event schemas and versions: schema registry policies, deprecation windows, automated compatibility checks in CI, consumer-driven contracts, and how you would handle breaking changes in production while minimizing consumer disruption.

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 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.