daneshzaki / tashkent

Sample Node.js code that uses Rabbit MQ to implement choreography in Microservices

Home Page:https://medium.com/@daneshzaki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tashkent

Sample Node.js code that uses Rabbit MQ to implement choreography in Microservices

Demo MicroServices

  • Order Creation
  • Invoice Check
  • Stock Replenish
  • Order Shipment

Messages: "order created!", "stock replenished!" & "ship order!"

Input: Order creation by POST method call to Order Creation service

Process Flow: order create --> inventory check --> stock replenish (or) order shipment --> order delivery

Output: Order Shipped

This post describes the high level flow and this post describes the compensation logic.

About

Sample Node.js code that uses Rabbit MQ to implement choreography in Microservices

https://medium.com/@daneshzaki

License:MIT License


Languages

Language:JavaScript 100.0%