Produce and consume messages in the Astra Portal
This guide assumes you have completed the Astra Streaming quickstart.
Now, it’s time to produce and consume messages in your new streaming tenant. The following steps will use the "Try Me" feature of the Astra Portal to interact with an existing topic.
Select the producer and consumer topics
-
Navigate to the "Try Me" tab.
-
Choose the appropriate namespace and topic. In this example, the name for both the producer and consumer is the same. Leave the rest of the settings as default.
Connect and send a message
-
Click Connect to open a websocket connection in your browser with this topic.
-
In Send message, type a message, and then click Send.
A message is produced (sent) to your selected topic, and then the consumer consumes (retrieves) the message. The result is a chat style write and read.