News for hackers. Stuff that matters.
Re:Choose Postgres Queue Technology by mbb70 on Sunday September 24, 2023 @06:21PM (#37637732)
I've done the same with MongoDB with findOneAndModify, simple and solid
Re:Choose Postgres Queue Technology by ttfkam on Sunday September 24, 2023 @09:29PM (#37638736)
I think you mean findOneAndUpdate, and while simple, I wouldn't call it solid.

https://stackoverflow.com/a/76821755

Re:Choose Postgres Queue Technology by dminor on Sunday September 24, 2023 @10:08PM (#37638971)
Agenda uses this, and we found the hard way on mongo 4 that it can lead to mongo spinning the CPU at 100% if it gets too many at once. No idea if they've fixed it in later versions.