Skip to content

Add 10 question walkthroughs and 6 patterns - #9

Merged
design-gurus merged 1 commit into
mainfrom
feat/question-gaps-and-patterns
Aug 22, 2026
Merged

Add 10 question walkthroughs and 6 patterns#9
design-gurus merged 1 commit into
mainfrom
feat/question-gaps-and-patterns

Conversation

@design-gurus

Copy link
Copy Markdown
Owner

Fills the question-catalog gaps and the missing patterns. 16 new files, plus catalog and glossary wiring.

8 classic questions that appear on nearly every interview list but were missing here: Ticketmaster, real-time gaming leaderboard, proximity service (Yelp), Google Maps, food delivery (DoorDash), hotel reservation, Zoom, and a distributed message queue (the build-it-yourself version). Deliberate pairing: Ticketmaster (identified seats) and hotel reservation (counted inventory by date) cross-reference each other as the two halves of the inventory-modeling decision.

2 AI questions extending the repo's strongest differentiator: an AI code assistant (the completions/chat workload split, fill-in-the-middle, prefix caching economics, repo retrieval) and an LLM gateway (token-budget quotas with estimate/reserve/settle, pre-first-token failover, metering off the hot path). AI section grows from 6 to 8 questions.

6 patterns interviewers probe constantly, taking patterns/ from 24 to 30 with no filler: distributed transactions (2PC vs sagas), event sourcing + CQRS, the outbox pattern, backpressure, gossip protocol, and logical clocks (Lamport and vector). Each ends with the interview framing the repo's pattern pages are known for.

Wiring: root README difficulty lists and counts, both catalog tables, and 8 new glossary terms (backpressure, CQRS, event sourcing, gossip, logical clock, outbox, saga, 2PC). Every file carries one Mermaid diagram and 3 to 8 internal links; new patterns are linked from the new questions that use them (food delivery uses the outbox, the message queue uses backpressure).

Checks: repo link checker passes across all 16 files and 4 catalog edits. No em dashes, per CONTRIBUTING. One diagram per file, all GitHub-renderable.

Questions (the gaps on nearly every interview list):
- Design Ticketmaster: seat holds, waiting room, no double-sell
- Design a real-time gaming leaderboard: sorted sets, rank at scale
- Design a proximity service (Yelp): geohash/quadtree, two-step reads
- Design Google Maps: tiles, hierarchical routing, stream-fed ETAs
- Design a food delivery app (DoorDash): order state machine, dispatch
- Design a hotel reservation system: counted inventory by date
- Design Zoom: UDP media, SFU topology, cascaded regional servers
- Design a distributed message queue: build the partitioned log itself

AI questions (extending the repo's differentiator):
- Design an AI code assistant (Copilot): FIM, prefix caching, repo
  retrieval, the completions/chat workload split
- Design an LLM gateway: routing, token-budget quotas, pre-first-token
  failover, metering off the hot path

Patterns (24 -> 30):
- Distributed transactions: 2PC vs sagas
- Event sourcing and CQRS
- Outbox pattern
- Backpressure
- Gossip protocol
- Logical clocks: Lamport and vector clocks

Wiring: all files listed in the root README (counts updated), the
question and pattern catalogs, and 8 new glossary terms. New content
cross-links existing patterns, questions, deep dives, and cheat
sheets; deliberate pairings include Ticketmaster vs hotel reservation
(identified vs counted inventory) and message queue vs backpressure.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@design-gurus
design-gurus merged commit 04ab983 into main Aug 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants