logoalt Hacker News

gr__or • today at 1:26 PM • 2 replies • view on HN

I'm probably being naive and stupid in ways I'm too stupid to imagine but isn't this basically just id = 0; GET() => id++


Replies

alfanick • today at 2:34 PM

Long story short, it always ends up with Lamport's clocks (or some variation of them). Some are easy, some are overly overcomplicated. Some implementation are just reinventing Lamport's clocks, because authors didn't know about them before.

➕ show 1 reply
thruway516 • today at 1:48 PM

Yes. Now do it on a production level distributed system with thousands of request per second with network latency and network failure and every race condition you can think of. Orders of magnitude more difficult.

➕ show 2 replies