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

  1. Navigate to the "Try Me" tab.

    Try me tab in Astra Streaming

  2. 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.

    Config try me in Astra Streaming

Connect and send a message

  1. Click Connect to open a websocket connection in your browser with this topic.

  2. In Send message, type a message, and then click Send.

    Send message in Astra Streaming

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.

Test message in Astra Streaming

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com