You can use QStash to forward a message to Kafka by using our Kafka REST API.
All you need is the
Webhook url from the
Upstash Console and the Kafka topic to
Here is a complete example:
<PASS> will already be
filled in when you copy the url, but you need to replace
<QSTASH_TOKEN> with the correct values.
curl -XPOST 'https://qstash.upstash.io/v1/publish/<KAFKA_URL>/webhook?topic=<TOPICNAME>&user=<USER>&pass=<PASS>' \
-H 'Authorization: Bearer <QSTASH_TOKEN>' \
-d 'hello world'