system-design

  • An MCP server for internal schema inspection: security, limits, and lessons

    In early 2026 we built an internal Model Context Protocol (MCP) server allowing engineering assistants to inspect production-replica database schemas, table relationships, and index definitions. The goal was…

  • Zero-downtime column rename under 400 writes a second

    In MySQL 8, RENAME COLUMN is theoretically an instantaneous metadata-only operation with ALGORITHM=INPLACE. In practice, running it against a table handling four hundred writes a second during business…

  • The circuit breaker that tripped on its own health check

    On a Thursday afternoon in mid-September, our checkout service tripped its circuit breaker to the upstream payment provider. For forty-two minutes, every customer payment was rejected with an…

  • An incident with no engineer

    An outage at 04:00 in August, resolved before anybody woke up. A worker crash loop that would have been a two-hour outage in 2023.

  • A trigger matrix, drawn once, on paper

    An afternoon spent working out what actually runs when, which nobody had ever done. A matrix of six jobs and four triggers is twenty-four cells and nobody had…

  • The command bus we removed

    A command bus introduced in 2021, and 88 commands with one handler each. A stack trace with four frames of dispatch before the work.

  • Reusable skills and agent definitions, and what they are actually for

    turkerdev/ai-skills and turkerdev/ai-agents, and eighteen months of retyping the same instructions. Context is per-session and knowledge is not.

  • Deleting a module

    A module built in 2022 for a product line discontinued in 2024. Eight thousand lines, a database schema and two scheduled jobs, all still running.

  • A pipeline described in one file, after four years of five

    Five workflow files, two composite actions, and nobody able to say what runs when. A change that needed editing three files, one of them wrong.

  • The reporting database that is not a replica

    A read replica serving reports, and reports that want a different schema. Eleven indexes on production tables that exist only for reporting.