The System Design Newsletter

The System Design Newsletter

Share this post

The System Design Newsletter
The System Design Newsletter
Live Comment System Design
Copy link
Facebook
Email
Notes
More
User's avatar
Discover more from The System Design Newsletter
Weekly newsletter to help busy engineers become good at system design
Over 149,000 subscribers
Already have an account? Sign in

Live Comment System Design

Feed: Real-Time Live Commenting Platform

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

Share this post

The System Design Newsletter
The System Design Newsletter
Live Comment System Design
Copy link
Facebook
Email
Notes
More
Share

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

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
Ibrahim Elsawaf's avatar
Han's avatar
Sertaç's avatar
Samita's avatar
7 Likes
7

Share this post

The System Design Newsletter
The System Design Newsletter
Live Comment System Design
Copy link
Facebook
Email
Notes
More
Share

Discussion about this post

User's avatar
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
736

Share this post

The System Design Newsletter
The System Design Newsletter
8 Reasons Why WhatsApp Was Able to Support 50 Billion Messages a Day With Only 32 Engineers
Copy link
Facebook
Email
Notes
More
24
How PayPal Was Able to Support a Billion Transactions per Day With Only 8 Virtual Machines
#30: Learn More - Awesome PayPal Engineering (4 minutes)
Dec 26, 2023 â€¢ 
Neo Kim
246

Share this post

The System Design Newsletter
The System Design Newsletter
How PayPal Was Able to Support a Billion Transactions per Day With Only 8 Virtual Machines
Copy link
Facebook
Email
Notes
More
14
How Stripe Prevents Double Payment Using Idempotent API
#45: A Simple Introduction to Idempotent API (4 minutes)
May 9, 2024 â€¢ 
Neo Kim
380

Share this post

The System Design Newsletter
The System Design Newsletter
How Stripe Prevents Double Payment Using Idempotent API
Copy link
Facebook
Email
Notes
More
29

Ready for more?

© 2025 Neo Kim
Publisher Privacy
Substack
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.