Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1 KB

README.md

File metadata and controls

20 lines (14 loc) · 1 KB

saga-pattern-study ✈️ 🏨 💳

This project do proposal to study a software architectural pattern called Saga, when we've microservices that comunicate each other with consistency approach. In other words, each microservice or component, should be wait for previous microservice for continuous the request flow.

use case

For this study, i will approach a travel payment system with three steps or Saga orchestrator, when the step 1 send the request to a kafka topic and the same, send the request back and again, the step send the request to a fligh booking and get the response. Every step follow the same flow with difference of the final service, that are hotel booking and payment.

architecture

arch

API

Usage

curl --header "Content-Type: application/json" -\
    -request POST --data '{"message":"holy wars"}' \
    http://localhost:8070/flightproducer \
     ' --silent | jq .