Giter Site home page Giter Site logo

rabbit-setup's Introduction

Rabbit MQ Local and PCF Set Up

This repository covers setting up Rabbit MQ both locally and in Pivotal Web Services (PWS) as a message broker for Event Driven Micro Service Architectures.

Setting Up RabbitMQ Locally (Mac)

To build the 'simple-message-producer' locally you will need a RabbitMQ running locally, otherwise the Test will not pass as the RabbitTemplate will not be able to create a ConnectionFacactory. With a Mac installing Rabbit can be done using Brew:

brew install rabbitmq

...

brew services start rabbitmq

After the installation, admin console can be found here:

http://127.0.0.1:15672/

(guest/guest)

Setting Up RabbitMQ Locally (Docker Compose)

This requires Docker Compose to be installed on your Local system:

https://docs.docker.com/compose/install/

Once Docker Composed is installed, you can get the Docker Compose file for Rabbit MQ into your local project:

curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-rabbitmq/master/docker-compose.yml > docker-compose.yml

To start the image up, run the follow command:

docker-compose up -d

To connect to the Rabbit MQ running in the docker image from Spring Boot, the following can be added to the application.yml file:

services:
 rabbitmq:
  image: rabbitmq:3.6.6-management
  container_name: rabbitmq
  ports:
    - "15672:15672"
    - "5672:5672"

Setting Up RabbitMQ on PWS

Simply create a free instance of the CloudAMQP broker from the Marketplace:

cf create-service cloudamqp tiger scdf-rabbitmq-queue

Part of the Service in creating the Rabbit MQ Service is to create the manager.

alt text

This is a useful interface to refer too. Here you can see where messages are going and what Exchanges and Queues are created.

rabbit-setup's People

Contributors

lshannon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.