PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Google

Design a pub-sub replay system

Last updated: Apr 12, 2026

Quick Overview

This question evaluates a candidate's skills in distributed systems and streaming architectures, including pub-sub replay semantics, message ordering, storage and indexing strategies, scalability, and operational reliability.

  • hard
  • Google
  • System Design
  • Software Engineer

Design a pub-sub replay system

Company: Google

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

Assume you have a distributed publish-subscribe messaging system with topics, publishers that write messages, and subscribers that consume them. Design a **replay feature** that lets a subscriber re-read historical messages after a failure, a deployment, or when a new subscriber joins. Your design should cover: - replay from a timestamp, message ID, or offset - replay for an individual subscriber or a subscriber group - message ordering guarantees within a partition - storage and retention of historical messages - high throughput for normal delivery while also supporting replay traffic - failure recovery, duplicate handling, and operational trade-offs Discuss the APIs, data model, storage architecture, indexing strategy, scaling approach, and how replay works end to end.

Quick Answer: This question evaluates a candidate's skills in distributed systems and streaming architectures, including pub-sub replay semantics, message ordering, storage and indexing strategies, scalability, and operational reliability.

Related Interview Questions

  • Design an Online Coding Judge Platform - Google (medium)
  • How to host many domains on one IP? - Google (medium)
  • Design street-view image ingestion and storage system - Google (hard)
  • Design a global real-time notification system - Google (medium)
  • Design a large-scale distributed rate limiter - Google (medium)
Google logo
Google
Mar 6, 2026, 12:00 AM
Software Engineer
Technical Screen
System Design
11
0
Loading...

Assume you have a distributed publish-subscribe messaging system with topics, publishers that write messages, and subscribers that consume them. Design a replay feature that lets a subscriber re-read historical messages after a failure, a deployment, or when a new subscriber joins.

Your design should cover:

  • replay from a timestamp, message ID, or offset
  • replay for an individual subscriber or a subscriber group
  • message ordering guarantees within a partition
  • storage and retention of historical messages
  • high throughput for normal delivery while also supporting replay traffic
  • failure recovery, duplicate handling, and operational trade-offs

Discuss the APIs, data model, storage architecture, indexing strategy, scaling approach, and how replay works end to end.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Google•More Software Engineer•Google Software Engineer•Google System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.