Instant Task Acceptance
When you submit a task to AsyncQueue, the API returns immediately with a task ID. Your application continues without waiting for the callback to execute.
How it works
Section titled “How it works”- Your application sends a
POST /v1/tasksrequest with a callback URL - AsyncQueue validates the request, queues the task, and returns a
201 Createdresponse - A background worker picks up the task and executes the HTTP callback
- You check the result later via
GET /v1/tasks/:idor receive a notification viaonCompleteUrl
Why this matters
Section titled “Why this matters”- No blocking - Your API responds to users immediately, even when triggering long-running work
- Better reliability - If a callback fails, AsyncQueue retries automatically without your application being involved
- Higher throughput - Queue thousands of tasks per second without overwhelming your backend services
- Resilience - Tasks survive service restarts and temporary outages
Common use cases
Section titled “Common use cases”- Sending transactional emails or push notifications
- Processing uploaded files (resize images, generate thumbnails, transcode video)
- Syncing data to third-party services (CRM updates, analytics events)
- Generating reports or PDF exports
- Running batch operations across large datasets