Two Pods, One Job Table: A Safe Postgres Queue with SKIP LOCKED in Spring Boot
java
dev.to
It's 10:20 AM on a Monday and support has forwarded three screenshots of the same "Your invoice is ready" email, received three times by one customer. The dashboards look fine. CPU is low, the error rate is zero. Your logs show this: 10:15:00.112 [scheduling-1] INFO c.a.n.NotificationWorker - picked 50 jobs (pod notif-7c9d-a) 10:15:00.115 [scheduling-1] INFO c.a.n.NotificationWorker - picked 50 jobs (pod notif-7c9d-b) 10:15:00.118 [scheduling-1] INFO c.a.n.NotificationWorker - picked 50 jo