toltarisa / spring-boot-event-driven-microservice-case-study

Simple case study to try event driven microservice architecture using Spring Boot & RabbitMQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event Driven Microservice Case Study

Event Driven Microservice Beginner Case Study using Spring Boot & RabbitMQ

Technology Stack

  • Java 11
  • Spring Boot
  • Spring Data JPA
  • RabbitMQ
  • Lombok
  • H2 Database
  • Docker (Compose)

Running the Application

  $ docker compose up

Architecture Diagram

Architecture

Requests

Create Order

POST http://localhost:9091/orders

{
  "userId": 123
}
Get Order By Id

GET http://localhost:9091/orders/:orderId

Update Order

Order Status Types:

  • order_create
  • order_cancelled
  • order_delivered
  • order_return

PATCH http://localhost:9091/orders/:orderId?orderStatus=order_delivered

Email Service Example Log
  Notifying user with id = 123 for order status change to order_delivered with order id = 1

About

Simple case study to try event driven microservice architecture using Spring Boot & RabbitMQ


Languages

Language:Java 98.2%Language:Dockerfile 1.8%