The System Design Newsletter

The System Design Newsletter

Live Comment System Design

Feed: Real-Time Live Commenting Platform

Neo Kim's avatar
Neo Kim
May 31, 2023
Error
Error

Thanks for reading systemdesign.one newsletter. If you're not yet subscribed, let me help you with that:

Error

High-Level Design

The Live Comment service carries out the following operations at a high level:

  • The gateway server distributes live comments to the clients via server-sent events (SSE)

  • Clients subscribe to a live video on the gateway server using Hypertext Transfer Protocol (HTTP)

  • The gateway server maintains an in-memory subscription store to keep track of viewership associations

  • The gateway server subscribes to a live video on the endpoint store

  • The endpoint store manages the list of gateway servers subscribed to a specific live video

  • Heartbeat signals or time to live (TTL) on keys in the subscription store can be used to handle inactive SSE connections

  • When a live video ends, it triggers an update in the endpoint store

  • The dispatcher broadcasts live comments to the dispatcher in peer data centers

Read the full article


Thank you for reading System Design Newsletter. This post is public so feel free to share it.

Share

Hepsilion's avatar
Han's avatar
Sertaç's avatar
Ibrahim Elsawaf's avatar
7 Likes
Error
Error

Discussion about this post

User's avatar
How Stripe Prevents Double Payment Using Idempotent API
#45: A Simple Introduction to Idempotent API (4 minutes)
May 9, 2024 • 
Neo Kim
How Uber Finds Nearby Drivers at 1 Million Requests per Second
#31: And How Proximity Service Works Explained Like You’re Twelve (5 minutes)
Jan 4, 2024 • 
Neo Kim
8 Reasons Why WhatsApp Was Able to Support 50 Billion Messages a Day With Only 32 Engineers
#1: Learn More - Awesome WhatsApp Engineering (6 minutes)
Aug 27, 2023 • 
Neo Kim

Ready for more?

Error
© 2025 Neo Kim
Publisher Privacy
Substack
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture
ErrorError
    User's avatar

    javinpaul, a subscriber of The System Design Newsletter, shared this with you.