by mrkeen · 6mo ago · 0 comments
As soon as you have customers (who interact via REST), or partner payment systems (e.g. stripe) you're back to:
Two customers do a GET. This gets dispatched to the DB, wrapped in a nice transaction, the transaction ends, the customers get their result.
The two customers then do a POST to set a new value. Also wrapped in a transaction.
Race condition with more steps.Less relevant, but message queues in Erlang and related languages are typically in-memory, no DB transaction required.