← Questions
Design a distributed counter for many users
0
I was asked this
No reports yet. Sign in to say where you were asked it.
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.
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
