3 ms·
> but ultimately there should be a periodic job that attempts to transition states of any outstanding transactions and the job that does that work should be abl
by blueplanet200 5y ago
> but ultimately there should be a periodic job that attempts to transition states of any outstanding transactions and the job that does that work should be able ensure uniqueness (in the runtime sense) and idempotency.
You've re-implemented a job queue in the database.
- deleted 5y ago[deleted]
- prescriptivist 5y agoNo I didn't.
- blueplanet200 5y agoYou kinda did though. Your models in states they shouldn’t be are jobs. These kind of headaches are avoided using a job queue that provides strong consistency. Everything is a trade off.