We are trying to design a distributed transaction across multiple Redis databases. Is it possible to use Lua Script to achieve this? We do not want to implement via 2 phase commit, as that can cause data loss. We cannot afford to have data loss.
Example scenario: I have 3 Redis DBs. We need to update all 3. Updates can be sequential, but we want to end the transaction with success only if all three are successful. If any one of them fails, we should be able to rollback all of them.