System Design Newsletter

Share this post

Leaderboard System Design

newsletter.systemdesign.one

Discover more from System Design Newsletter

Weekly newsletter on system design. Get the powerful system design template for FREE
Over 18,000 subscribers
Continue reading
Sign in

Leaderboard System Design

Feed: Real-Time Gaming Leaderboard

NK
May 31, 2023
1
Share this post

Leaderboard System Design

newsletter.systemdesign.one
Share

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

High-Level Design

When a player updates the score, the following tasks are executed:

  1. The client establishes a WebSocket connection to the load balancer for instantaneous communication

  2. The load balancer redirects the client's request to the nearest data center

  3. The server modifies the score in the sorted set data structure within Redis

  4. The serverless function updates the entries in the relational database by utilizing the write-behind cache pattern

Read the full article


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

Share

1
Share this post

Leaderboard System Design

newsletter.systemdesign.one
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

© 2023 NK
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing