Learn
Learn Queuert's guarantees in about ten minutes and its chain shapes in ten more, with exercises that run on PostgreSQL or SQLite in your browser.
Each step teaches one idea and ends with a short exercise. The exercises run on a real database inside your browser, PostgreSQL through PGlite or SQLite through sql.js, so nothing needs installing. New to Queuert? Start with What is Queuert.
Essentials
How a chain runs and what Queuert guarantees about it. About 11 minutes.
- 1. Your first chainDefine a job type, start a chain and let a worker process it.2 min
- 2. Transactional outboxStart a chain in the transaction that saves your data, so neither exists without the other.3 min
- 3. Errors and retriesA job that throws or whose worker dies goes back to pending and runs again.3 min
- 4. Transactional completionComplete a job in the transaction that writes its result, so a retry never applies it twice.3 min
Shaping chains
Chains of several jobs, and jobs that wait for other chains. About 8 minutes.
- 5. Continuing a chainHand a chain from one job to the next with continueWith, and branch at runtime.4 min
- 6. Job blockersMake a job wait until other chains complete.4 min
Ready to use it in a project? Use it in your app installs Queuert with your database and migrates the schema.
Go further
Chain patternsLoops, go-to jumps and other chain shapes.SchedulingStart a chain later, or reschedule a job from inside its handler.DeduplicationKeep a repeated trigger from queuing the same chain twice.Awaiting chainsWait for a chain to finish from your own code.Workerless outcomesComplete or continue a job from outside a worker.Batched processorsProcess many jobs of one type in a single pass.TimeoutsBound how long an attempt may run before it is abandoned.