Skip to content

tamararankovic/microservices_demo

Repository files navigation

microservices demo

The repository contains an online clothing store microservice application. It serves the purpose of demonstrating microservice architecture and the following commonly used patterns:

  • API Gateway
  • API Composition
  • Saga

The application comprises four microservices (Catalogue, Inventory, Ordering, Shipping) and an API Gateway, all written in Go.

Quickstart

  1. Clone this repository
git clone https://github.com/tamararankovic/microservices_demo
cd microservices_demo
  1. Run the following command
docker-compose up --build

Architecture

Endpoints

API Composition

API Gateway plays the role of an API Composer when detailed information on an order is requested. It queries Catalogue, Ordering and Shipping service, after which it aggregates the collected data.

Saga

Orchestration-based saga is implemented in Ordering, Inventory and Shipping services and is triggered when a user tries to place an order. Create Order Orchestrator is part of the Ordering service. Saga orchestrator states based on commands and corresponding replies are displayed below.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published