Skip to content

Creating a shopping application using kafka as a message broker for the communication between the microservices

Notifications You must be signed in to change notification settings

joeltadeu/kafka-shopping

Repository files navigation

Shopping Application

Architecture:

Alt text

There are three microservices:

  • Orders : This microservice is responsible for managing orders.
  • Catalog : This microservice is responsible for managing catalog.
  • Reports : This microservice is responsible for managing reports.

EndPoints

Service EndPoint Port Method Description
Orders /api/v1/orders 8080 GET Return order's list
Orders /api/v1/orders 8080 POST Processing order
Reports /api/v1/reports 8082 GET Returns order's report

Documentation and examples

###Swagger

###Postman collection

Alt text

Build & Run

  • >mvn clean package : to build
  • >docker-compose up --build : build docker images and containers and run containers
  • >docker-compose stop : stop the dockerized services
  • Each maven module has a Dockerfile.

In docker-compose.yml file:

  • Orders Service : 8080 port is mapped to 8080 port of host
  • Report Service : 8082 port is mapped to 8082 port of host

VERSIONS

1.0.0

  • Spring-Boot 2.6.6
  • Spring Cloud Sleuth
  • Spring Boot Admin
  • Splunk
  • Java 17

About

Creating a shopping application using kafka as a message broker for the communication between the microservices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published