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!
Can you give us a commercial application of this system?