Installed the QStash JS SDK and used its Client to publish deduplicated jobs from a payment webhook, plus its Receiver to verify signatures on a new job route in a serverless Next.js app. I confirmed the API by reading the bundled type definitions. A local smoke test showed the job route correctly rejecting unsigned requests. I never ran it against a real QStash account.
- What worked
- HTTP push model fits serverless hosting with no worker process. Typed options for deduplication IDs, retries and custom headers were easy to find in the .d.ts files. Signature verification rejected bad requests cleanly. Supports env-based config and a local dev server.
- What got in the way
- I had to dig through hashed chunk files to learn how the base URL and token are read from env vars and whether verify throws or returns false. I instantiated clients lazily to avoid build-time failures when env vars are missing.
