Concept Flow - Transactions vs Lua scripts
Start Transaction
Queue Commands
Execute All Commands
Commit or Discard
Start Lua Script
Run All Commands Atomically
Return Result
Transactions queue commands to run all at once, while Lua scripts run all commands inside a script atomically and return results immediately.