Skip to content

Integration Design

When to use HTTP jobs, webhooks, or schedules

Choose the SendMQ primitive that fits the trigger, destination, and state of your workflow.

By SendMQ 2 min read

When is a background job the right choice?

Use a background job when your application already knows which endpoint should do the work. A checkout can enqueue a receipt at its own HTTP endpoint after saving an order. Record the returned job ID with the order and submit the same request with the same idempotency key if the first submission times out.

A one-off action that needs its own lifecycle can also be a job. A support follow-up due tomorrow can use the Agent Actions fields so your application can report whether it was sent or skipped.

When should you publish a webhook?

Use webhooks when an event needs to reach subscribers. For example, publish order.shipped and let SendMQ fan it out to enabled endpoints registered for that event. Each endpoint receives a signed request and can have a different delivery result.

Include a stable event ID in the payload if receivers need to recognize the same business event across a deliberate replay or a new publication.

When should you create a schedule?

Use a schedule when the clock is the trigger. A cron schedule can run a daily report at 09:00 in the business time zone, and a rate schedule can call an endpoint on a fixed interval. Use a one-time schedule for a single future occurrence you want to manage through the Schedules API.

One order workflow can use all three: enqueue its receipt, publish its shipment event, and schedule the warehouse’s nightly reconciliation.

Explore SendMQ workflows