Giter VIP home page Giter VIP logo

airportrabbitmq's Introduction

Article

RabbitMQ Exchange types - Put them into practice

RabbitMQ - Build Quorum Queue in Cluster

Publisher

Check-in passenger

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=checkin --server.port=8080

Airplane Currency

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=finance --server.port=8081

Tower communication to Pilot

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=tower --server.port=8082

Weather forecast

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=weather --server.port=8083

Consumer

Flight U2571

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=airplane --server.port=8085 --flight.code=flight.eu.U2571

Flight U2771

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=airplane --server.port=8086 --flight.code=flight.eu.U2771

Flight FR691

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=airplane --server.port=8087 --flight.code=flight.uk.FR691

Flight UA221

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=airplane --server.port=8088 --flight.code=flight.us.UA221

Send Passenger Request

Checkin

curl -H "Content-type:application/json" -X POST -d '{"name":"Carl","surname":"Baker","flightNumber":"U2571","seat":"15A"}' http://10.21.40.14:8080/send

Currency

curl -H "Content-type:application/json" -X POST -d '{"flightCode":"flight.eu.U2771","currency":"EURO"}' http://10.21.40.14:8081/send

Tower

curl -H "Content-type:application/json" -X POST -d '{"pilot":"William","message":"Ready for take off"}' http://10.21.40.14:8082/send

Weather

curl -H "Content-type:application/json" -X POST -d '{"temp":29,"windSpeed":5,"description":"Sunny"}' http://10.21.40.14:8083/send

Publisher Cluster

Weather forecast

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=cluster,weather --server.port=8083

Consumer Cluster

Flight PR777

java -jar AirportRabbitMQ-1.0.0.jar --spring.profiles.active=cluster,airplane --server.port=8089 --flight.code=flight.private.PR777

Message Flow simulator

https://rmq-topology.dbproductions.de/

airportrabbitmq's People

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.