Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Jobs & queues

Background work is modeled as jobs (and sometimes events). Simple apps may drain work in-process; durable setups run a worker next to HTTP.

Mental model

HTTP handler → enqueue job → worker processes job

When to use a job

Use a jobKeep in the request
Email, webhooks, slow I/OTiny pure compute
Must survive process restartMust finish before response

Running a worker

Check your CLI version:

atlantus --help
# often: atlantus job work --path .

Deploy HTTP (atlantus start) and the worker as two processes sharing the same app directory and ATL_DATABASE_URL when the queue is durable.

App code

Enqueue from a handler or service using the job built-ins available in your binary (atlantus check will accept valid names). Keep job handlers under app/jobs/ as scaffolded.

Next: CLI.