UPSTASH_KAFKA_REST_URL
, UPSTASH_KAFKA_REST_USERNAME
and
UPSTASH_KAFKA_REST_PASSWORD
using the copy icons next to them.
Node.js
sample code to show how to produce message(s) using the
REST API. Our sample will use a topic named cities
and send a few city names
to this topic.
Replace following parameters in the code snippets below with your actual values.