Package com.renomad.minum.queue
ActionQueue
, which is
a background task processor.
This enables programs to be run outside the normal request/response flow. For example,
- a computationally-heavy or long-running process run nightly on the data.
- An action by a user that could take a while to complete, such as compressing a large number of files.
A major difference between this and alternatives is its paradigm of lightness. Most background processors concern themselves with the potential risks - like if power goes out during a step, or if a remote endpoint fails, necessitating a retry. If addressing risks such as those are prominent in your consideration, it may be worthwhile to use an alternative.
But, if a prudent assessment is taken, in many cases the benefits of lightness and minimalism are sufficiently valuable to make the tradeoff worthwhile. Minimalism makes the system harder against bugs of all types. Everything has a tradeoff - using large complex systems is likelier to cause subtle bugs of all kinds - correctness, performance, security.
-
ClassDescriptionThis class provides the ability to pop items into a queue thread-safely and know they'll happen later.This class provides the ability to pop items into a queue thread-safely and know they'll happen later.This class exists to properly kill off multiple action queuesThis class tracks the overall state of the
ActionQueue
s that are in use throughout the system.