Message Queue

About Message Queue

Enable message queueing between your applications, components, and devices.

Use this message broker software service to provide persistent, highly available, reliable messaging between applications, components, and devices. The message queue service supports a variety of messaging protocols, many clients, and flexible routing with built-in direct, fanout, topic, and header exchange types.

For more information see the RabbitMQ documentation.

Using Message Queue in the Predix Environment

Create a service instance to use the Message Queue service in the Predix environment.

About This Task

Note: The following steps are performed using the Cloud Foundry CLI. To complete the steps in a web browser, follow the instructions on the service page in the Predix Catalog.


  1. Create a directory for your application, then create a project in the directory.
  2. Create and package your application.
    For guidelines about how to develop an application that is compatible with the cloud environment, see
  3. Login to your Cloud Foundry account.
    cf login
  4. Navigate to the project folder where your application is located.
    cd <file_path>/<application_name>
  5. Push the application to Cloud Foundry:
    cf push <application_name>
  6. List the available applications:
    cf apps
    You see the application you pushed.
  7. List the services in the Cloud Foundry marketplace:
    cf marketplace

    You see the available services and associated plans.

  8. Create a message queue service instance:
    cf create-service <service_name> <plan> <my_message_queue_instance> 
    • <plan> – the plan associated with a service.
    • <my_message_queue_instance> – the service instance you are creating.
  9. Bind your message queue application to your service instance:
    cf bind-service <application_name> <my_message_queue_instance>
  10. Restage your application to ensure the environment variable changes take effect:
    cf restage <application_name>
  11. To view the environment variables for your application, enter the following command:
    cf env <application_name>
    The command shows the environment variables, which contain your basic authorization credentials, client ID, and the endpoint URL.