Step 1: Set up Your First Event Broker

To try out PubSub+ for free and learn the basics of event-driven architecture (EDA), you'll start by setting up an event broker. Solace offers two options, and you can try them both out in a free trial.

What do you want to try first?

You have two options for setting up an event broker:

  • Set up a free software event broker locally

  • Start a free trial in PubSub+ Cloud

Choose which one you want to try:

 

Download and Launch a Software Event Broker

You can download the software event broker image, create a container, and configure the necessary ports with just one command.

To download and start up a software event broker, perform these steps:

  1. If you don't already have it, install Docker.
  2. Open a command-line terminal.
  3. Run the appropriate command for your operating system to open secure ports to access your event broker: 
    • For Windows and Linux users: 
    • 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
    • For Mac users:
    • 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
  4. In Docker Desktop, run the container for the software event broker.
  5. In the container, click Show all ports.
  6. Click port 8080:8080 to connect on PubSub+ Broker Manager (or use a browser and enter https://localhost:8080).
  7. To log in, enter the username and password. The default value for both fields is "admin". Depending on your Docker setup, the password may be necessary.

Now that you have installed a software event broker, you can jump to the next lesson to learn about EDA basics.

Create a PubSub+ CloudEvent Broker Service

You can create a free PubSub+ Cloud account and then create your first event broker service from the Cloud Console.

To create an event broker service, perform these steps:

  1. In your browser, visit the PubSub+ Cloud login page and perform one of these steps:
    • If you don't already have a free trial PubSub+ Cloud account, click Sign Up. Enter the requested information, to log in to PubSub+ Cloud.
    • If you already have a trial account, enter the email address and password that you used when you signed up and click Sign in.

    After you log in to the PubSub+ Cloud Console, you'll see a welcome page with a navigation bar on the left-hand side of the page:

    Screenshot showing the elements described in the surrounding text

  2. In the PubSub+ Cloud Console, on the navigation bar, select Cluster Manager .
  3. On the Services page, click Create Service located on the top right corner of the page or click the Create Service card.
  4. In the Service Name field, type "My-First-Service".
  5. In the Cloud list, select one of the following cloud providers:

    • Amazon Web Services
    • Google Cloud
    • Microsoft Azure

    Screenshot showing the elements described in the surrounding text

  6. In the Region list, select the region (or location) to use and click OK. A pin appears on the map indicating the geographic location you selected.
  7. In the Broker Release list, select the most recent event broker service release.
  8. In the Broker Version drop-down list, leave the default version selected.

    Screenshot showing the elements described in the surrounding text

  9. In the Service Type list select Developer. Trial accounts have access to only one Developer service.
  10. Click Create Service. PubSub+ Cloud begins creating the service. The process takes a few minutes.

For additional tutorials to learn how to create and manage your EDA in the Cloud Console, see: Getting Started with PubSub+ Cloud.

Tutorial Steps

You've completed the first step in the tutorial. Click the link to the next lesson to continue.

Step Description

Step 1

Set up Your First Event Broker - Complete

Step 2

Solace EDA Basics - Next Lesson

Step 3

Set up the Solace Try-Me CLI Tool

Step 4

Try a Publish-Subscribe Message Exchange Pattern

Step 5

Try a Request-Reply Message Exchange Pattern

Step 6

Explore Consumer Scaling Patterns

Next Steps

You can return to the main Tutorial page at any time.