Job queues are deceptively tricky

(typesanitizer.com)

33 points | by ingve 1 day ago

6 comments

  • theamk 8 minutes ago
    [delayed]
  • nosefrog 17 minutes ago
    Major lesson from when I worked on Google Search indexing is that queues have a lot of hidden complexity and can make your outages much longer than they need to be. We had a big project to get rid of a bunch of queues by just scaling up our synchronous backends and making them faster.
    • esafak 5 minutes ago
      Care to share more about the issues?
  • irjustin 22 minutes ago
    I remember learning about CSV parsing and how it's conceptually simple, yet beyond the simple , and quotes: the corner cases bloat your parser 10-15x.
  • wewewedxfgdf 1 hour ago
    You solve this simply with two cron jobs, one for weekend and one weekdays.
  • ktimespi 1 hour ago
    I find it very annoying when queue problems break into queue-of-queue patterns like in the `wait`scenario
  • zmj 2 hours ago
    I haven't modeled it, but I wonder how far you'd get on randomizing the policy choice for concurrency limit 1. Maybe weighted by past results, but bounded to allow it to shift instead of falling permanently into a basin.