InterviewStack.io LogoInterviewStack.io

Event Driven and Asynchronous Architecture Questions

Designing and operating systems that decouple components using asynchronous messaging and event driven patterns. Covers message queues and brokered communication models (for example Kafka, RabbitMQ, Amazon SQS), publish subscribe patterns, producer consumer workflows, background job and task queue design, and when to prefer asynchronous versus synchronous request response interactions. Includes higher level architectural patterns such as event sourcing, Command Query Responsibility Segregation, sagas for distributed transactions, and patterns for decoupling services. Operational concerns include delivery semantics (at least once, at most once, exactly once), ordering guarantees and partitioning, dead letter queues, retry strategies, idempotency, error handling, monitoring and alerting (for example message lag, queue depth), scaling consumers, throughput and latency trade offs, consistency implications, and common use cases such as email sending, batch processing, file processing, notification delivery, and distributed work coordination.

HardSystem Design
94 practiced
Design a distributed rate limiter enforcing per-customer fairness across many stateless consumer instances. Describe a scalable design using Redis with token-bucket semantics, Lua scripts for atomicity, and consistent hashing for sharding customer state. Discuss correctness, race conditions, failover, and how to handle bursts and global quotas.
HardTechnical
75 practiced
You must guarantee atomic, exactly-once state updates across a relational database and a Kafka topic when a service writes an order and emits an event. Explain how the outbox pattern combined with CDC (Change Data Capture) and Kafka Connect/ Debezium provides an atomic, reliable delivery to Kafka, and discuss operational considerations such as transactional boundaries and ordering guarantees.
MediumSystem Design
77 practiced
Design a Kafka-based data ingestion pipeline that must handle 100,000 events per second, retain raw events for 7 days, and provide at-least-once delivery to downstream analytic sinks such as S3 and a real-time index. Describe producers, partitioning strategy, broker sizing, replication, compression, schema registry use, consumer groups, backpressure handling and monitoring.
EasyTechnical
82 practiced
Explain idempotency in asynchronous processing and list practical patterns a data engineer can use to make downstream consumers idempotent. Include approaches such as idempotency keys, deduplication stores, conditional writes, and idempotent sinks, and discuss ttl and storage choices.
MediumTechnical
107 practiced
Design a governance and lineage solution for event-driven pipelines that provides schema enforcement, lineage tracing from source to sink, PII masking policies, and audit logs for regulatory compliance. Describe components, metadata stores, integration with schema registry, and how to implement enforcement at publish time and at processing time.

Unlock Full Question Bank

Get access to hundreds of Event Driven and Asynchronous Architecture interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.