Messaging and Queues interview questions
100 System Design practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Messaging and Queues questionsBeginner
- Choosing a queue for a small app
- Customers get two emails
- Dead letter queue
- Decoupling with messaging
- Delayed messages
- Delivery guarantees
- Event-driven architecture
- Events vs commands
- Fan-out with messaging
- How do you know a queue is healthy?
- Kafka consumer groups
- Kafka offsets
- Kafka partitions
- Managed queues like SQS
- Message acknowledgements
- Message ordering
- Messages disappear when a worker crashes
- Messages keep failing
- Moving image processing to a queue
- One event, many actions
- Order status updates arrive out of order
- Priority queues in messaging
- Push vs pull consumers
- Queue vs publish-subscribe
- RabbitMQ vs Kafka
- Receiving payment webhooks
- Retries with backoff
- Sending appointment reminders
- Signup spike during a promotion
- Stream processing vs batch processing
- Telling users about async results
- Webhooks
- What a message queue is
- What Kafka is
Intermediate
- A producer change breaks consumers
- Adding events to a legacy service
- Back-pressure in streaming systems
- Choosing a Kafka partition key
- Consumer group rebalancing
- Consumer lag
- Consumers keep getting kicked out
- Deduplicating events in a stream
- Event time vs processing time
- FIFO queues and their limits
- Idempotent producers
- Inbox pattern for consumers
- Kafka exactly-once semantics
- Kafka lag keeps growing
- Kafka replication and durability
- Kafka retention and log compaction
- Keeping order while processing in parallel
- Log ingestion overwhelms Elasticsearch
- Message schemas and schema registry
- Notification system for multiple channels
- One bad message blocks a FIFO group
- One partition is overloaded
- Payment events must not be double-processed
- Real-time order count per city
- Reprocessing after a bug
- Routing messages by type
- Saga orchestration vs choreography
- Sending webhooks to customers
- SQS messages processed twice
- State in stream processing
- Transactional outbox pattern
- Travel booking saga
- Watermarks and late data
Experienced
- A consumer was down for a day
- Building a CDC pipeline to a warehouse
- Choosing between streaming platforms
- Choreography became spaghetti
- Claim check pattern
- Competing consumers and ordering trade-offs
- Dedup table grows too large
- Distributed job scheduler
- Event sourcing vs event streaming
- Exactly-once with an external API
- Fair processing across tenants
- Handling poison pills in streams
- Inventory events from many warehouses
- Kafka tiered storage
- Long-lived events and schema changes
- Message delivery in a chat app
- Migrating from RabbitMQ to Kafka
- Multi-region Kafka
- Ordering across partitions
- Read model projections from events
- Real-time fraud detection pipeline
- Request-reply over messaging
- Retries break ordering
- Securing a shared Kafka platform
- Sizing a Kafka cluster
- Stream joins
- Streaming pipeline costs too much
- Streaming results don't match batch
- Testing an event-driven system
- The log as a central abstraction
- Tracing a request through async services
- Unbounded queues are dangerous
- Urgent messages stuck behind bulk jobs