Ines Panker

Hi, I'm Ines Panker.

I'm a senior staff engineer at Sleuth, a SaaS observability platform (the first engineer they hired, de-facto architect), and the person who just gave this talk.

LinkedIn is the fastest way to reach me.

Twice, Early, or Never: Your Queue Has Commitment Issues

When you put a job in a queue, it feels like a promise: the job will run once and soon. But the queue never promised that, the only thing it promised was to hold our message until a worker takes it.

So sooner or later, a job will run twice, because a worker crashed just before saying “done”. Or it will run early, before the database transaction that created it has committed. Or it will never run at all, because it expired, got rejected, or failed for a different reason.

Thus, we design systems around the queues to cover up for the queue’s natural shortcomings: use the at-least-once settings, make jobs idempotent, plan for smart retries, use database and Redis locks to guard against race conditions, set up dead-letter queues, log expired and rejected jobs, … but also fail fast during an incident.

References for this talk 📚

Posts behind this talk ✍︎

From series Twice, Early, or Never, still being written