Soft Delete Still Leaves You With Hard Decisions
Adding deleted_at keeps the row. It does not decide how uniqueness, restoration or related records should behave.
wade womersley – york based software engineer
Engineering notes from the sharp end
wade womersley – york based software engineer I write the way I work: direct, useful, and more interested in what holds up in production than what sounds clever on a slide.
329 published posts
Latest update
Latest post
Adding deleted_at keeps the row. It does not decide how uniqueness, restoration or related records should behave.
Archive
Starting the replacement instance is only part of a rollout. The old process still needs to stop without abandoning work.
Put a soft animal behind glass and suddenly winning a prize feels like negotiating a small hostage release.
An identifier can be stored correctly in the database and still lose precision on its way through a JavaScript client.
A pool of ten connections sounds small until twenty application instances each have one.
Readiness and liveness answer different questions. Connecting both to every dependency can make an outage harder to recover from.
The tin promises a biscuit. The buttons inside appear to consider that somebody else’s problem.
Retries at several layers can turn one failing request into a surprising amount of traffic.
Leaving a field out and deliberately clearing it are different requests. A partial-update endpoint needs to preserve that distinction.
The rare potion is staying in the bag. There might be a more important emergency after this emergency.