Ali Behzadian Ali Behzadian · 20+ years in fintech, payments & distributed systems

Most system design prep stops when the first diagram works. That is where the Staff interview starts.

I wrote What Breaks First for the second half of the room: 28 classic backend problems taken past the happy path into the exact races, hot shards, clock lies, and timeout bugs you need to raise before the interviewer asks.

102-page interactive sample · 5 complete unabridged chapters + 5 whiteboard traps · zero email or signup required.

Cover of What Breaks First: System Design Interviews for Senior and Staff Backend Engineers by Ali Behzadian
571 Pages 28 Problems + 6 Short Round PDF · EPUB · Print
Try It Right Now · 30 Seconds

Test Your Instinct Before You Download Anything

Every chapter in the book opens with a working version-one design — and immediately asks what breaks first. Try two real traps from the free sample right here:

Free Interactive Sample cover: The 5-Problem Stress Test
Free Interactive Sample · 102 Pages

The 5-Problem Stress Test (Direct PDF, No Email Gate)

Judge the book by holding five real, unabridged chapters — connected by five distinct whiteboard drills (cascade ranking, code review, consistency sorting, 3:00 AM incident fallout, and an Uber vs. Yelp architecture diff) plus a 100-point Staff calibration scorecard.

  • R1 · Ch. 1
    URL Shortener Rank the Cascade (1 → 4) · Hot cache shards, Bloom filter sizing, and check-then-insert races.
  • R2 · Ch. 4
    Distributed Unique ID Generator Code Review (PR #418) · Backward NTP clock jumps, worker collisions, and 53-bit JSON precision.
  • R3 · Ch. 18
    Ride-Sharing System (Uber) Consistency Budget Sort · Ephemeral GPS pings vs. linearizable CAS driver locking.
  • R4 · Ch. 21
    Payment Processing System 3:00 AM Incident Fallout · Why a timeout is an unknown, idempotency keys, and double-entry ledgers.
  • R5 · Ch. 28
    Proximity / Nearby-Search Service (Yelp) Architecture Diff: Uber vs. Yelp · Why reusing Uber's geo index explodes in Midtown Manhattan.
Download Free 102-Page PDF ↓
Inside the Full 571-Page Book

All 28 Classic Problems + The Short Round

Each problem follows the same battle-tested sequence: realistic interview dialogue, working happy-path design, unprompted failure modes, production techniques from first principles, and a defensible version-two architecture.

01URL ShortenerFree Sample
02Distributed Rate Limiter
03Distributed Cache
04Distributed Unique ID GeneratorFree Sample
05Key-Value Store (Dynamo-style)
06Distributed Message Queue (Kafka-like)
07Distributed Job Scheduler
08Distributed File Storage (Dropbox/S3-like)
09Content Delivery Network (CDN)
10API Gateway / Throttling Layer
11News Feed (Facebook/Instagram)
12Twitter (Tweet, Follow, Timeline, Search)
13Chat / Messaging System (WhatsApp)
14Notification System (Push/Email/SMS Fanout)
15Social Graph / Friend Recommendation
16Video Streaming Platform (YouTube)
17Live Comment / Reaction Stream (Live Sports App)
18Ride-Sharing System (Uber)Free Sample
19Ticket / Seat Booking System (Ticketmaster)
20E-commerce Order & Inventory System
21Payment Processing SystemFree Sample
22Food Delivery System (DoorDash)
23Search Autocomplete / Typeahead
24Web Crawler
25Ad Click Aggregation & Counting System
26Distributed Logging & Metrics Monitoring System
27Google Docs (Real-Time Collaborative Editing)
28Proximity / Nearby-Search Service (Yelp)Free Sample

Plus The Short Round — 6 Rapid-Fire Staff Systems

· Real-Time Leaderboard · Distributed Lock Service · Stock Exchange Matching Engine · Webhook Delivery Platform · Feature Flags & Dynamic Configuration · LLM Inference Gateway
Get the Complete Edition

28 Problems. 571 Pages. Digital or Print.

Pick the format you actually study from — DRM-free digital direct from me, or a physical desk reference you can mark up with a pen.

Print Editions Worldwide

Paperback & Hardcover

571 Pages · Amazon & Major Bookstores

Available worldwide through Amazon and major international bookshops. Order from your preferred store below:

Paperback ISBN: 978-3-9829684-1-4  ·  Hardcover ISBN: 978-3-9829684-2-1
Video & Ongoing Engineering

Where the Failures Continue

Books freeze on publication day. Production failures do not. Follow the channel and visual notes below for live walkthroughs, real outages, and new architecture breakdowns.

YouTube · Primary Channel

Watch Systems Break Live

Deep-dive Staff system design walkthroughs, standalone backend techniques from first principles, and timely engineering failures — visual, calm, and backed by real numbers.

Subscribe on YouTube (@alibehzadian) →
  • Short Explainers (< 3 min): One production break, one worked number, zero fluff.
  • Technique Deep Dives (8–15 min): Bloom filters, fencing tokens, quorums, idempotency, CRDTs.
  • Full Walkthroughs: Happy path → failure modes → defensible version-two design.
About the Author

Ali Behzadian

Ali Behzadian portrait

I am a Senior backend engineer with 20+ years of experience building and scaling fintech, payment processing, and distributed systems — alongside leading multidisciplinary engineering teams.

I originally wrote What Breaks First while preparing for Senior and Staff interviews I actually had to pass, then spent a year turning those notes into the reference I wished existed: realistic conversations, real production failure modes, and techniques derived from first principles instead of buzzword lists.

If the free sample or the full book helped you in an interview room — or if you disagree with a trade-off — I would genuinely like to hear from you at ali.behzadian@gmail.com.