Sabitlenmiş Tweet

day 4 of building in public.
yesterday I said postgres is my job queue.
people always push back on this. let me explain 👇
most devs reach for redis or a queue service
the moment they need background jobs.
I get it. queues feel like a queue problem.
but there's a SQL trick called FOR UPDATE SKIP LOCKED.
it lets multiple workers pull jobs from a plain table
without ever stepping on each other.
worker 1 grabs row A → locked.
worker 2 skips it, grabs row B → locked.
no duplicates. no collisions. no extra service.
one table. one trick. that's the queue.
no redis to manage.
no kafka to configure.
no queue dashboard to monitor.
just postgres which I already had.
the best infrastructure decision
is usually the one that removes a service,
not adds one. 🧱
English


















