By the last page, this is the design you will have built. Drag it, or Show all, to see every part.
Lesson · 13 pages · about 11 min
Design Airbnb
Homes to search and nights to book: a quadtree search with answers saved per map cell, a row per night guarded by a version check, and why low contention makes optimistic concurrency the right guard.