| ▲ | mrkeen 2 hours ago | |
This is correct, but databases only help to the extent that the whole world is happy to live in your database. As soon as you have customers (who interact via REST), or partner payment systems (e.g. stripe) you're back to:
Race condition with more steps. | ||
| ▲ | hackyhacky an hour ago | parent [-] | |
As I pointed out above, that's not the API that would be exposed in an actor model. See in particular the timestamp-based update condition, if you're principally concerned with end-user-caused races. Less relevant, but message queues in Erlang and related languages are typically in-memory, no DB transaction required. | ||