▲ | diarrhea 6 days ago | ||||||||||||||||||||||||||||||||||||||||
This introduces long-running transactions, which at least in Postgres should be avoided. | |||||||||||||||||||||||||||||||||||||||||
▲ | danielheath 6 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
Depends what else you’re running on it; it’s a little expensive, but not prohibitively so. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
▲ | aitchnyu 5 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||
I read too many "use Postgres as your queue (pgkitchensink is in beta)", now I'm learning listen/notify is a strain, and so are long transactions. Is there a happy medium? | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
▲ | thewisenerd 5 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
t1: select for update where status=pending, set status=processing t2: update, set status=completed|error these are two independent, very short transactions? or am i misunderstanding something here? -- edit: i think i'm not seeing what the 'transaction at start of processor' logic is; i'm thinking more of a polling logic
this obviously has the drawback of knowing how long to sleep for; and tasks not getting "instantly" picked up, but eh, tradeoffs. | |||||||||||||||||||||||||||||||||||||||||
|