Katas

Eleven katas, each a small working system with one idea to get right. Pick one, change its code, and run it to see whether it holds.

New here? Start with Counting likes
Katas
Tags
Not startedNearby drivers at rush hour

A nearby-drivers lookup that falls over when downtown gets crowded.

Scaling reads
Scaling readsMediumGeospatialIndexes
Not startedNearby drivers across a Redis Cluster

Six Redis nodes, and one of them does all the work.

Scaling reads
Scaling readsHardRedis ClusterSharding
Not startedCounting likes

1,000 people tapped like. The counter says 847.

Concurrency and transactions
Concurrency and transactionsEasyLost updatesAtomicity
Not startedConfirming orders from payment webhooks

A checkout that takes fans' money and never confirms their orders.

Concurrency and transactions
Concurrency and transactionsEasyWebhooks
Not startedSeat holds when tickets go on sale

A seat-hold endpoint that lets two fans hold the same seat when the on-sale opens.

Concurrency and transactions
Concurrency and transactionsMediumLocking
Not startedTwo payments for the same seat

A checkout that sells one seat to two fans when their payments land at once.

Concurrency and transactions
Concurrency and transactionsMediumAtomicityLocking
Not startedLive comments on a single server

A live video's comment feed that saves every comment and shows none of them.

Real-time messaging
Real-time messagingEasyServer-sent events
Not startedDirect messages on a single server

A chat server that receives every message and delivers none of them.

Real-time messaging
Real-time messagingEasyWebSockets
Not startedDirect messages across servers

Two chat servers that can only deliver messages between their own phones.

Real-time messaging
Real-time messagingMediumWebSocketsPub/sub
Not startedHome feed for a new app

Design the tables behind a small social app, then build its home feed.

Social feeds
Social feedsEasySchema designJoins
Not startedHome feed at 5,000 reads a second

The home feed from before, now opened 5,000 times a second.

Social feeds
Social feedsMediumFan-outCaching

System Kata is in private preview

Enter the preview password to continue.