6
Message Queue (AMQP) © 2020 General Electric Company

Message Queue (AMQP) - General Electric › ... › predix-services › PDFs › Message_Queue_(A… · messaging protocols, many clients, and flexible routing with built-in direct,

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Message Queue (AMQP) - General Electric › ... › predix-services › PDFs › Message_Queue_(A… · messaging protocols, many clients, and flexible routing with built-in direct,

Message Queue (AMQP)

© 2020 General Electric Company

Page 2: Message Queue (AMQP) - General Electric › ... › predix-services › PDFs › Message_Queue_(A… · messaging protocols, many clients, and flexible routing with built-in direct,

Contents

Message Queue 1

About Message Queue 1

Using Message Queue in the Predix Environment 1

ii Message Queue (AMQP)

Page 3: Message Queue (AMQP) - General Electric › ... › predix-services › PDFs › Message_Queue_(A… · messaging protocols, many clients, and flexible routing with built-in direct,

Copyright GE Digital© 2020 General Electric Company.

GE, the GE Monogram, and Predix are either registered trademarks or trademarks of General Electric Company. All other trademarks are the property of their respective owners.

This document may contain Confidential/Proprietary information of General Electric Company and/or its suppliers or vendors. Distribution or reproduction is prohibited without permission.

THIS DOCUMENT AND ITS CONTENTS ARE PROVIDED "AS IS," WITH NO REPRESENTATION OR WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF DESIGN, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. ALL OTHER LIABILITY ARISING FROM RELIANCE UPON ANY INFORMATION CONTAINED HEREIN IS EXPRESSLY DISCLAIMED.

Access to and use of the software described in this document is conditioned on acceptance of the End User License Agreement and compliance with its terms.

© 2020 General Electric Company iii

Page 4: Message Queue (AMQP) - General Electric › ... › predix-services › PDFs › Message_Queue_(A… · messaging protocols, many clients, and flexible routing with built-in direct,
Page 5: Message Queue (AMQP) - General Electric › ... › predix-services › PDFs › Message_Queue_(A… · messaging protocols, many clients, and flexible routing with built-in direct,

Message Queue

About Message QueueEnable message queueing between your applications, components, and devices.

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

For more information see the RabbitMQ documentation.

Using Message Queue in the Predix EnvironmentCreate 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 webbrowser, follow the instructions on the service page in the Predix Catalog.

Procedure

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, seehttps://docs.cloudfoundry.org/devguide/deploy-apps/prepare-to-deploy.html.

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 marketplaceYou see the available services and associated plans.

8. Create a message queue service instance:

cf create-service <service_name> <plan> <my_message_queue_instance>

© 2020 General Electric Company 1

Page 6: Message Queue (AMQP) - General Electric › ... › predix-services › PDFs › Message_Queue_(A… · messaging protocols, many clients, and flexible routing with built-in direct,

where:

• <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.

2 © 2020 General Electric Company