Distributed Systems Toolkit
Tools for the problems that show up once a system spans more than one machine — unique IDs, replication quorums, distributed locking, and conflict resolution. All run entirely in your browser.
How these fit together
Snowflake ID Generator tackles the first problem any system spread across multiple machines runs into: minting unique IDs without a central database or coordinator to hand them out. Generate mode shows the timestamp/machine/sequence scheme in action — including what happens when several IDs are requested within the same millisecond — and Decode mode reverses any Snowflake ID back into the creation time, machine, and sequence number it was built from. Distributed ID Explorer zooms out to the full decision: it generates a UUID, ULID, Snowflake ID, and KSUID for the same instant side by side, and its Identify mode auto-detects and decodes any ID you paste in, whichever of the four formats it turns out to be.
Quorum Calculator covers the other half of running a replicated system: once data lives on N machines instead of one, how many of them does a read or a write actually need to touch? It checks a replica count and read/write quorum sizes against the W + R > N rule and reports the read, write, and availability fault tolerance that combination gives you.
Coordinating access to a single resource instead of replicating it is a different problem with its own sharp edge — Distributed Lock Simulator walks through the canonical lease-based lock race: a client pauses past its lock's TTL while a second client acquires it, and you can see directly whether a fencing token catches the stale write that results.
Once data is replicated, the next sharp edge is deciding which of two concurrent writes to the same key actually counts — Vector Clock Conflict Simulator runs that conflict through last-write-wins and a vector clock side by side, so you can see directly when clock skew makes LWW silently discard the genuinely later write, and how a vector clock either resolves it cleanly or honestly flags it as unresolvable instead of guessing.
Snowflake ID Generator
Generate and decode Twitter/Discord-style Snowflake IDs — timestamp, machine ID, and sequence.
Distributed ID Explorer
Compare UUID, ULID, Snowflake, and KSUID side by side — generate, identify, and decode any of them.
Quorum Calculator
Check whether a replica count and read/write quorum size guarantees strong consistency.
Distributed Lock Simulator
Simulate a lease-based distributed lock race and see whether a fencing token stops the stale write.
Vector Clock Conflict Simulator
Simulate last-write-wins vs vector clocks resolving a concurrent write — see when clock skew silently drops data.