Catalogue / luu-2025-key-value-rewrite

A former developer recalls a critical pipeline's rewrite, begun to move it from stored-procedure-heavy SQL Server onto four-operation key-value stores

Unnamed former employer of the luu.io author (the post does not name the organisation). Business-critical pipeline and its rewrite onto key-value stores.

Organisation
Unnamed former employer of the luu.io author (the post does not name the organisation)
Evidence
Reported from production
Source
Wrong ways to use the databases, when the pendulum swung too far

luu.io (personal blog), published 2025-06-11 (Published 2025; the author says the events took place more than a decade earlier and that some details may be fuzzy.)

Records

Failure#f1

Recurring downtime from deadlocks and query-plan flips in a pipeline whose logic lived in stored procedures

Decision#d1

Design the rewrite around key-value stores with four single-key operations and nested JSON documents, without joins, batching or transactions

Decision#d2

Gzip the JSON documents to cut bytes on the wire, at the price of the usual data tooling

Decision#d3

Per-write UUID checkpoints so that multi-step write flows can be retried safely

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.