The System Design Newsletter

The System Design Newsletter

Share this post

The System Design Newsletter
The System Design Newsletter
Distributed Counter
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 150,000 subscribers
Already have an account? Sign in

Distributed Counter

Feed: Sharded Counter

Neo Kim's avatar
Neo Kim
May 01, 2023
19

Share this post

The System Design Newsletter
The System Design Newsletter
Distributed Counter
Copy link
Facebook
Email
Notes
More
2
Share

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

High-Level Design

The distributed counter executes the following operations at a macro level:

  • the WebSocket exposes the counter to users via a gateway server

  • the heartbeat signal is utilized to terminate inactive WebSocket connections

  • the counter data type in a database based on Conflict-free Replicated Data Types (CRDT) is leveraged to realize the distributed counter


Find out more by reading the full article on my website systemdesign.one!

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

Share


Subscribe to The System Design Newsletter

By Neo Kim · Launched 2 years ago
Weekly newsletter to help busy engineers become good at system design
Shubham's avatar
Marko's avatar
Nabeel Shakeel's avatar
Apo's avatar
JZ's avatar
19 Likes
19

Share this post

The System Design Newsletter
The System Design Newsletter
Distributed Counter
Copy link
Facebook
Email
Notes
More
2
Share

Discussion about this post

User's avatar
Gerard Beaubrun's avatar
Gerard Beaubrun
Dec 4, 2023

Can you give us a commercial application of this system?

Expand full comment
Like (1)
Reply
Share
1 reply by Neo Kim
1 more comment...
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
737

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.