Architecture

Key range

A block of numbers reserved for 1 server, so 2 servers never hand out the same key.

Example

Server 1 uses 1 to 1,000,000 and server 2 uses 1,000,001 to 2,000,000.

Test yourself: Key range

Generating unique keys

What stops 2 shortener servers from generating the same number?

Lessons that use it

More architecture terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.