Skip to content
Aditya Pratap Singh edited this page Jun 26, 2019 · 1 revision

Welcome to the jobqueue wiki!

A LIFO(Last-In-First-Out) job queue helps in queue overload scenarios to provide back pressure and load shedding, while executing a queue of jobs.

  • Backpressure is a mechanism to slow down generation of request(or events from event streams) in order to reduce the load on a Queue. A very well explanation of JobQueue is explained in the video below for a traditional conveyor belt in a chocolate factory:

chocolate factory

She actually tries two different ways of dealing with it: setting some aside to get to later (buffering), and eventually she starts eating and hiding them in her hat (dropping). However, in the case of a chocolate factory, neither of these backpressure strategies are viable. Instead, she needed them to slow down the conveyor; in other words, she needs to be able to control the producer’s speed. We’ll talk more about strategies in a bit!

  • Load shedding is a mechanism to reduce queue load by dropping/rejecting jobs in the queue
Clone this wiki locally