Trying Out Your Event Broker Service

If you haven't already done so, start by Creating Your First Event Broker Service. Assuming that you have now created an event broker service, this getting started tutorial walks you through trying your new event broker service. You will connect a publisher and a subscriber, subscribe to a topic, and publish a matching message to try out the event broker service .

This tutorial demonstrates the most basic event interaction using messaging. This tutorial shows you the following tasks:

  1. Go to the Try Me! Page
  2. Subscribe to a Topic
  3. Publish a Matching Message

Go to the Try Me! Page

To access the Try Me! page:

  1. Log in to the PubSub+ Cloud Console if you have not done so yet. The URL to access the Cloud Console differs based on your authentication scheme. For more information, see Logging In to the PubSub+ Cloud Console.

  2. In the Cloud Console, click the Cluster Manager card or the icon on the left navigation bar.
  3. On the Services page, in the top-left, select the environment that contains your event broker service.
  4. Click the card for your event broker service. The event broker service details page opens.
  5. On the Service Details page select the Try-Me! tab.
  6. Click Open Broker Manager. Broker Manager opens in a new browser tab.
  7. In the Publisher panel, in the Establish Connection section, click the expand icon .
  8. To connect to the event broker service copy the value for Client Password from the Try-Me! tab into Broker Manager and paste it into the Client Password field under Establish Connection.

    If you didn't select the latest version when you created the event broker service, you may also need to copy and paste the value for Client Username.

    Screenshot showing the elements described in the surrounding text

    Screenshot showing the elements described in the surrounding text

  9. In the Subscriber panel, click Connect.

    Screenshot showing the elements described in the surrounding text

  10. Check that beside the Establish connection text, the previously red link icon changes to a green, which indicates that the Publisher and Subscriber applications are correctly connected.

    Screenshot showing the elements described in the surrounding text

Subscribe to a Topic

In the Subscriber panel under Topic Subscriber click Subscribe to subscribe to the flight/> topic. After you click the button, the subscribed topic appears. You can also try clicking the suggested topics under Suggestions or inputting your own in the text box. See Understanding Topics to learn more about topics.

Screenshot showing the elements described in the surrounding text

Publish a Matching Message

In the Publisher panel, click Publish to publish a message to the topic.

Screenshot showing the elements described in the surrounding text

You should see that the message has been sent from the Publisher and received by the Subscriber.

Screenshot showing the elements described in the surrounding text

Next Steps

You have now exchanged a message between a publisher and a subscriber. Want to learn more?