Send welcome emails in the background
Queue an email job at sign-up, send it from a worker and let Halyard retry when your email provider has a bad minute.
- Node.js
- Python
Guides
Each guide takes one job you actually have, like welcome emails, nightly reports or a crontab you want gone, and walks through it with working code in Node.js and Python, the failure cases included.
Publish one order.paid event and let receipts, inventory and analytics each react on their own queue, with their own retries.
Showing 9 of 9 guides
Queue an email job at sign-up, send it from a worker and let Halyard retry when your email provider has a bad minute.
Resize uploads into web-ready sizes on a dedicated media queue, report progress to the browser and keep big files from starving other work.
Publish one order.paid event and let receipts, inventory and analytics each react on their own queue, with their own retries.
Run a report at 02:00 in your team's time zone, compute it from the scheduled slot rather than the clock, and backfill missed days.
Move a crontab to Halyard schedules one entry at a time, with retries, logs and time zones you can see, and no night without a run.
Design jobs that are safe to run twice: idempotency keys at enqueue, upserts in the worker and the job ID passed to every downstream call.
Use queue rate limits and token buckets to stay under a partner's 100 requests per minute without dropping work.
Split a long transcode into chunks, run them in parallel and stitch the result together when the last one finishes.
Batch a week of activity per user and send one email each Monday morning in every reader's own time zone.
Tell us what you're building. The most requested topics get written first, and we'll email you when yours is published.