PPractick

System design interview question

Design a pub/sub messaging system

Medium · System design (HLD)

The prompt

"Design a publish/subscribe messaging service — something like Google Pub/Sub or SNS/SQS. Publishers send to topics, many independent subscribers receive copies, each subscriber acknowledges messages individually, and undelivered messages are retried. Millions of messages per second."

What this round really tests

per-message delivery state at scale, which is the crucial difference from a log-based queue. Kafka tracks one offset per consumer group; here each subscriber acknowledges each message independently, which means the broker must hold and manage per-message-per-subscriber state — and that changes the storage, redelivery, and ordering story completely.

Clarifying questions worth asking

Practise questions like this with a real engineer

On Practick another engineer interviews you live for 60 minutes on a question from this bank. They have the full interviewer guide beside the call: the answers to your clarifying questions, the numbers to hand out, a ladder of follow-ups and a scoring rubric. You get the model solution once the session settles. It is free: interview someone for an hour and you have earned your own.

Book a free mock interview

Related questions

All 132 system design interview questions

System design mock interviews · DSA interview questions · Free mock interview practice · Browse interviewers · Sign in