Design live commenting
Last updated
Was this helpful?
Last updated
Was this helpful?
Ref:
Ref:
Ref:
Ref:
user can leave comment, real-time
others can see comments/posts in real-time
only focus on comments
high available
low latency
100 M posts, any posts can receive comments
our system should handle 100k/s comments delivery
Linkedin has built AKKA, which has multiple Actors
each Actor is responsible for communicating via one connection
viewers subscribe to live videos
each host maintain a in-memory subscription table
publish using subscription
user publish comments via dispatcher service
dispatcher service looks up the nodes for those videos
dispatch comments to frontend nodes
nodes fanout to subscribed users
user first subscribe the video in the frontend
in the frontend, it maintains a subscription table, noting down the <topic-connectionId>
entry
frontend route subscribe requests to dispatcher service
dispatcher service then register <topic-node>
entry in Redis