Announcing QStash Callbacks
Blog post from Upstash
QStash, initially designed as a message queue and scheduler for serverless and edge platforms, has introduced QStash Callbacks, enabling users to send messages and receive responses from destination APIs. This advancement allows for a two-way communication where QStash sends a message to the destination API, waits for a response, and forwards the response's status, body, and headers to a specified callback URL. Users can incorporate callback URLs by adding the Upstash-Callback header when publishing or scheduling messages, facilitating new use cases such as updating databases with responses from third-party APIs. The feature has been exemplified by a project using QStash to interact with the DALL-E API and store generated images in Redis. Feedback and ideas for further applications are encouraged via Twitter or Discord, and detailed usage instructions are available in the documentation.