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.

HardTechnical
95 practiced

As an Engineering Manager planning to adopt event sourcing for an audit-critical payments ledger, describe event store responsibilities, snapshotting strategy, read-model (projection) design, handling schema evolution and event versioning, replay/rebuild plans, and scaling strategies for read models while maintaining correctness.

HardTechnical
75 practiced

You proposed replacing the core messaging backbone used by 25 teams and must ensure zero downtime. Draft a detailed migration plan covering dual-write strategies, consumer compatibility layers, contract testing, staged rollouts, ownership per phase, rollback paths, integration testing approach, and a cost estimate for the migration effort.

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.

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.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.