Trying Out Your Messaging Service¶
The first thing you need to do with Solace PubSub+ Cloud is to create a messaging service. Assuming that you have now created a messaging service, this getting started tutorial will walk you through trying your new messaging service. You will try out the messaging service by connecting a publisher and a subscriber, subscribing to a topic, and publishing a matching message.
The goal of this tutorial is to demonstrate the most basic messaging interaction using Solace messaging. This tutorial will show you:
- How to connect a publisher and a subscriber.
- How to subscribing to a topic.
- How to publish a matching message.
Step 1: Go to try me tab¶
To access the try me tab, follow the steps below.
- Go to your messaging services page by selecting Services from the top navigation bar.
- Select your messaging service to navigate to messaging service details.
- On the service details page, navigate to the Try Me! tab.
Step 2: Connect publisher and subscriber¶
The try me tab is divided into the following sections.
- Donut charts at the top representing your messaging service metrics such as network usage, guaranteed messaging endpoints and the number of active connections.
- Two code pen projects: publisher and subscriber.
To connect publisher and subscriber, follow the steps below.
- Click on the connect button under step 1 on the publisher codepen.
- Click on the connect button under step 1 on the subscriber codepen.
- Validate publisher and subscriber connection.
- Optionally: Select the ‘show advanced settings’ option to see the credentials that this application is using to connect. These credentials are found in the ‘Connect’ tab and can be used when connecting your other applications.
Step 3: Subscribe to a topic¶
Subscribe to the try-me topic under step 2 on the subscriber window. You can also try other topics if you like. Click here to learn more about topics.
Step 4: Publish a matching message¶
Publish a message with try-me as the topic name under step 2 on the publisher codepen.
You should see that the message has been sent on you publisher and received by your codepen.