Documentation
Jobs & Queues
Process background work with local or distributed queues.
Overview
Jobs keep request handlers fast by offloading non-blocking workloads.
Example
Go
q := jobs.NewInMemoryQueue(128)
go q.RunWorker(ctx, handler)
_ = q.Enqueue(ctx, jobs.Message{Name: "email.send"})Best Practices
- Use idempotent job handlers.
- Track retries and dead-letter scenarios.
Common Pitfalls
- Performing long synchronous work in HTTP handlers.
- Ignoring queue backpressure signals.