Skip to main content

Task Selection Strategies

Task selection controls the order in which tasks are dequeued for processing. This is a global setting that applies to all task types.

Available Strategies

FIFO (Default)

First-In-First-Out. Tasks are processed in the order they were queued.
Best for: General workloads, fairness guarantees, predictable ordering.

LIFO

Last-In-First-Out. Most recently queued tasks are processed first.
Best for: Cache-hot data, reducing latency for recent requests, stack-like workloads.

Priority

Tasks with higher priority values are processed first. Tasks at the same priority level use FIFO ordering.
Best for: Mixed workloads with urgent vs background tasks, SLA-based processing.

Configuration

Using Priority

When using the priority strategy, queue tasks with a priority value (0-100):
Priority range is 0 (lowest) to 100 (highest). Default priority is 50 if not specified.

Comparison