← Questions

Design a distributed counter for many users

0
NvidiaSystem designLast asked Sep 2025

Many users increment shared counters concurrently. Start with a correct single-process counter with locking, then design it for many servers: atomic increments in a database, sharded counters that are summed on read, batching, and the trade-off between exact and eventually consistent counts.

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing