DEV Community

Alex Spinov
Alex Spinov

Posted on

Upstash QStash Has a Free API That Most Developers Dont Know About

QStash is a serverless message queue with guaranteed delivery, retries, and cron scheduling.

Send Message

import { Client } from "@upstash/qstash";
const qstash = new Client({ token: process.env.QSTASH_TOKEN });

await qstash.publishJSON({
  url: "https://myapp.com/api/process",
  body: { orderId: "123" },
  retries: 3
});
Enter fullscreen mode Exit fullscreen mode

Delayed + Cron

await qstash.publishJSON({ url: "...", body: {}, delay: 3600 });
await qstash.schedules.create({ destination: "...", cron: "0 9 * * *" });
Enter fullscreen mode Exit fullscreen mode

Key Features

  • Serverless message queue
  • Guaranteed delivery
  • Cron scheduling
  • Batch sending
  • Signature verification

Need to scrape or monitor web data at scale? Check out my web scraping actors on Apify or email spinov001@gmail.com for custom solutions.

Top comments (0)