Skip to content

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

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published