top | item 46831686

Ask HN: Do you bother making state changes reversible?

1 points| Pepp38 | 1 month ago

I’m trying to understand how people handle changes to real system state. In many projects, once something writes to a DB or config, the previous state is effectively gone unless you planned for it upfront.

I haven’t personally dealt with large-scale failures here, but with more automation and AI writing state directly, it feels like reversibility matters more. Curious whether teams actively design for rollback, or mostly rely on backups and manual fixes.

2 comments

order

linux4dummies|1 month ago

Check out Nix and NixOS. NixOS is designed to keep a record on system changes, and rollbacks are easy (atleast regarding configuration changes).