r/Supabase • u/fervent7 • 17h ago
database PostgreSQL persistent task queue: concurrency, idempotency and restart recovery
/r/codereview/comments/1y6b5t7/postgresql_persistent_task_queue_concurrency/For those using Supabase, would you recommend Supabase Queues (pgmq) or a dedicated PostgreSQL queue table for this use case? I'm particularly interested in concurrency, stale worker protection and reliable restart recovery.
1
Upvotes
View all comments
1
u/Adventurous_Ant_4233 16h ago
You already have a queue table, so asking if a dedicated one is recommended is circular. The stale-result thing is a lease and fencing token problem, not a table design problem.