Mehdi Akiki

Posts tagged "rust"

  • Published on
    Cargo resolver 3 prefers dependency releases compatible with your declared rust-version. See where fallback helps, where it cannot, and how workspaces change the result.
  • Published on

    Investigation · Part 10 of 20 · What survives a crash

    Checkpointing a Log Without Losing the Tail

    A log needs a checkpoint, and the naive one loses data: on a plain restart it dropped two acknowledged operations, and after a crash it counted one twice. Log segments, a durable snapshot and a strict order fix it, and my simulator checks every crash point.
  • Published on

    Investigation · Part 9 of 20 · What survives a crash

    Write-Ahead Logging From Scratch

    I built a tiny key-value store in Rust with a write-ahead log: append, fdatasync, apply, and only then say ok. My crash simulator checks every crash point, and it finds the bug that kill -9 never shows: an ok printed one fdatasync too early.
  • Published on

    Investigation · Part 9 of 20 · When the benchmark lies

    Coordinated Omission: How a Load Test Hides Its Worst Latency

    My toy server stops for half a second every five seconds. A client that waits for each answer saw 4 slow requests out of 1.36 million, and a p99 of 30 microseconds. A client with a fixed schedule saw 1,608 slow requests and a p99 of 450 milliseconds.