In a few minutes you’ll have a free broker installed and ready to pass events between your applications.
The easiest way to start publishing and subscribing with PubSub+ Standard is by launching a Docker container, so before you start, you need to have Docker installed on your host machine.
Don’t have Docker? Go to Docker – Get Started.
Already installed Docker? Proceed to step 2.
Pull the message broker image from the Docker repository and start a container instance using these two steps:
docker run -d -p 8080:8080 -p 55555:55555 -p 8008:8008 -p 1883:1883 -p 8000:8000 -p 5672:5672 -p 9000:9000 -p 2222:2222 --shm-size=2g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --name=solace solace/solace-pubsub-standard
docker run -d -p 8080:8080 -p 55554:55555 -p 8008:8008 -p 1883:1883 -p 8000:8000 -p 5672:5672 -p 9000:9000 -p 2222:2222 --shm-size=2g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --name=solace solace/solace-pubsub-standard
This command starts a message broker container named solace, using the latest PubSub+ Standard image pulled from Docker Hub, creates an admin user with global access permissions, and publishes the following message broker container ports to the same ports on your host machine:
Optional – Learn how to connect your microservices with PubSub+ from the pros at Solace who live and breathe this every day. We’ll send you helpful tips and tricks including tutorials and sample projects.
By submitting this form, you agree to Solace’s privacy policy: solace.com/privacy-policy/
Now that you’ve started your message broker, you can publish and subscribe to a message using the sample Publisher and Subscriber applications below (this works best in a Chrome browser):
topic/try/me
topic.topic/try/me
topic. The message you published is displayed under Messages in the Subscriber application.See the Pen Try Me Subscriber by SolaceDevs (@solacedevs) on CodePen.
Congratulations! With these few steps you’ve used your message broker to transfer a message between publisher and subscriber. As a next step, you can access our management tool Solace PubSub+ Broker Manager to configure or monitor your message broker:
admin
with password admin
.If you’ve signed up for updates we’ll send you some cool projects you can use to learn more about using PubSub+ Standard. Otherwise, we encourage you to consider the following links to learn more about the various capabilities you have access to now that you have PubSub+ running in your environment: