Giter Club home page Giter Club logo

middleware-hands-on's Introduction

MIDDLEWARE HANDS ON

This simple project is a composition of three docker containers:

  • rabbitMQ broker
  • api
  • consumer server

Requests are receive by API and content is published to rabbitMq broker queue and returs response. Consumer receives de message a prints the result.

Lessons Learned

Simple archtecture for asynchronous processing

For some reason, the rabbitmq container required specific user grants (chown) that wasn't in the container entrypoint user. So I had to configure UID and GUI variables so the container would start whith current OS user permissions.

Building

chmod +x build.sh
chmod +x start.sh
./build.sh
./start.sh

Playing

After running de app with previous section instructions run a POST request on the root resource / with the body below:

{
  "Name": "Alice"
}

Check the logs of consumer container

docker-compose logs consumer -f

You should see a greeting with the requested name

consumer  | Hello Alice
```

middleware-hands-on's People

Watchers

 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.