Tarif
CV Start a project

Topic map.

Every topic and what it connects to. Data structures on the left feed the system designs that depend on them, and those show up in the production notes. Hover or focus a topic to light up its connections.

Data structures & algorithms

  1. Big-O How to read time and space complexity, from counting loop steps to amortized analysis, query plans and N+1 bugs, with demos and production code.
  2. Hash maps How hash maps and sets work, from a coat check to CPython's dict, Swiss tables and hash flooding, with demos, exercises and real production code.
  3. Two pointers How two pointers work, from reversing a string to Floyd's cycle detection, PostgreSQL merge joins and one-pass sync diffs, with demos and exercises.
  4. Sliding window How the sliding window technique works, from a running sum to monotonic deques, stream windows and TCP, with step-through demos and real production code.
  5. Binary search How binary search works, from a guessing game to bisect, answer-space search, cache-friendly layouts, B-tree indexes and git bisect, with demos.
  6. Heaps How heaps and priority queues work, from ER triage to heapq, heapify, Dijkstra, timing wheels and the asyncio scheduler, with demos and production code.

System design

  1. Rate limiter How rate limiters work, from a ten-line counter to a distributed Redis design: five algorithms, a live simulator, two classic bugs and real production code.
  2. Idempotency Why retries double-charge and how to stop it: idempotency keys, upserts, backoff with jitter, the outbox and inbox, with live demos and real production code.
  3. Caching How caching works, from TTLs and cache-aside to eviction, HTTP headers, stampedes and LLM caches, with two live simulators and real production code.
  4. Queues How job queues work, from one producer and one worker to Little's Law, Celery tuning, retry storms and backpressure, with two live simulators and real code.
  5. Consistent hashing How consistent hashing works, from hash % N to rings, virtual nodes, jump hash, Maglev and Redis Cluster slots, with live demos and measured numbers.
  6. Real-time chat How real-time chat works: polling vs WebSockets, message ordering, receipts, presence, fan-out across servers and slow readers, with live demos and real code.

Production notes

  1. Congestive collapse Throughput fell from 157.6 to 55 req/s as load rose, with zero errors. How a latency-derived concurrency limit fixed it, and where it stops helping.
  2. No lost turns Queues lose tasks and deploys kill workers. How an owed-reply marker, a 60-second sweeper and a sent marker make sure every customer gets an answer.
  3. Pin your model IDs A vendor moved a model alias and every AI feature changed model and price with no deploy. What we pin now, and why failover skips vendors without keys.