|
|
|
|
|
by VWWHFSfQ
830 days ago
|
|
> Let's say you compute a value inside a transaction, cache it in Redis, and then the transaction fails. That just sounds like an application bug. Nothing should be done with the query result anyway until the transaction either completes our rolls back. |
|
Realistically it is the norm to yolo updates at a service and if it fails then the whole thing 500s and things are just in an unexpected state. Often it is not even possible to guarantee successful rollback etc - if your update back to original state fails then what is the application state now? Undefined and potentially invalid, pretty much. Most people just replay the request again and hope it succeeds.
Obviously the right answer is “don’t do that” or “offload that complexity into graphQL or something” but in the real world… people don’t.