Skip to content
Preptima

Messaging & Streaming interview questions

Queues versus logs, delivery guarantees, ordering, backpressure, and exactly-once claims.

8 questions in System Design.

hard8

hardScenarioDesign

Your services talk through events and one consumer has been down for an hour. What has it missed, and how does it catch up?

A Kafka-style consumer down for an hour has missed an offset range, not necessarily lost data. If retention still covers the gap, it resumes from the committed offset; catch-up needs surplus throughput, idempotent handlers, event-time logic and a plan for retention expiry. Use this event driven answer to show the decision, trade-off, and evidence rather than a memorised definition.

6 minmid, senior, staff
hardDesignCase Study

Every message must survive the phone being wiped, and a user has 40,000 of them. Where do they live and how are they paged?

The server holds one row per message, partitioned by conversation and clustered by descending sequence so a page is a contiguous read, and clients page by keyset cursor rather than offset. Per-user state moves to a side table so the body stays shared, and if messages are end-to-end encrypted the wipe is a key-custody question, not a storage one.

6 minmid, senior, staff
hardDesignConcept

What is the difference between a queue and a log, and what does a broker mean when it claims exactly-once?

A queue distributes work and forgets each message once acknowledged; a log is a retained, partitioned, replayable record that many consumers read independently at their own offsets. Use this message queues answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects event log to the point an interviewer is testing.

6 minmid, senior, staff