Sina Vafadar

Lab

Experiments and notes, mostly written to work something out. The long ones run in series: open a tile for its parts.

Series

2 series
ddia 08 / 12 chapters 2026 · 198 min open close

Designing Data-Intensive Applications

Martin Kleppmann · O’Reilly, 2017 The book taken a chapter at a time and rebuilt as a recall lab. Every exhibit is something to operate rather than a figure to read past: a log compacted and merged, a B-tree descended and split, one record encoded six ways and counted byte by byte.
  1. ch 01 Reliable, Scalable, Maintainable Applications reliability · scalability · maintainability 18 min
  2. ch 02 Data Models and Query Languages data models · query languages · graphs 22 min
  3. ch 03 Storage and Retrieval storage engines · lsm-trees · b-trees · column storage 26 min
  4. ch 04 Encoding and Evolution encoding · schema evolution · avro · rpc 24 min
  5. ch 05 Replication replication · consistency · quorums · failover 28 min
  6. ch 06 Partitioning partitioning · sharding · secondary indexes · rebalancing 24 min
  7. ch 07 Transactions transactions · isolation · mvcc · serializability 30 min
  8. ch 08 The Trouble with Distributed Systems distributed systems · clocks · networks · fencing 26 min
hft 01 / 22 labs 2026 · 26 min open close

HftBacktest

nkaz001 · hftbacktest.readthedocs.io The tutorials taken one at a time and rebuilt as a working lab. The docs show you the call and its output; these notes make you run the thing underneath it, an event field decoded bit by bit, two clocks reconciled to the nanosecond, one wire event split into the two events it has to become, an order book rebuilt from only the updates that reached it.
  1. lab 01 Data Preparation market data · order books · timestamps · backtesting 26 min