Background Workers

Offload tasks to a separate process listening on a queue.

Background workers are useful for processes that run continuously (unlike cron jobs) and don’t receive incoming traffic (unlike web services or private services).

Background workers most commonly run event loops that listen on a queue backed by a datastore such as Render Key Value and process events as they come in. This helps make your public-facing services more responsive by offloading long-running tasks to separate processes.

Getting Started

A few examples to get you started:

These examples will create a background worker to process tasks and a Render Key Value instance to persist and queue the tasks.