ngriffith
Re:Halfbakery
on Friday November 10, 2017 @07:44PM (#15674316)
And now I feel old...
Re:What is ‘skip locked’ for in PostgreSQL 9.5? (2016)
on Saturday July 01, 2017 @10:44AM (#14677312)
I've found that co-locating my queue with my application data enables a very powerful pattern around persisting actions and queuing up callbacks -- especially useful for smaller applications where scale isn't as much of a factor. It means I can persist both my data and my background jobs in a single transaction, and if something goes wrong during that transaction they both rollback (before the jobs are picked up by any workers). No need to coordinate two different systems (which can be full of pitfalls).