QStash is a robust, HTTP-based messaging and scheduling solution optimized for serverless and edge runtimes. With a stateless, HTTP-driven design, it supports a broad range of environments and platforms, including:
- Serverless functions (e.g., AWS Lambda) – Example
- Cloudflare Workers – Example
- Fastly Compute@Edge
- Next.js, including Edge runtime
- Deno
- Client-side web and mobile applications
- WebAssembly
- Any other environment where HTTP-based communication is preferred over TCP
QStash serves as the intermediary message broker for serverless applications. By sending a simple HTTP request to QStash, you can include a destination, payload, and optional configurations. QStash then stores the message securely and reliably delivers it to the designated API endpoint. In cases where the destination is temporarily unavailable, QStash ensures at-least-once delivery by automatically retrying until the message is successfully received.
To get started, head to the Upstash Console and copy your QSTASH_TOKEN.
For API documentation and a quickstart guide, refer to the official QStash API Documentation. Below, you'll find links to additional examples that demonstrate usage for each endpoint:
- Dead Letter Queue – Example
- Events – Example
- LLM – Example
- Messages – Example
- Queues – Example
- Schedulers – Example
- Signing Keys – Example
- URL Groups – Example
QStash is ideal for use with serverless architectures and edge deployments, supporting scenarios where HTTP-based communication provides flexibility and compatibility with modern applications.