/ECom

Microservices Billing System: Gestion clients, produits, factures avec Spring Cloud, Spring Cloud Gateway, Eureka Discovery Service, OpenFeign, et une interface web Angular pour une gestion efficace et modulaire.

Primary LanguageJava

E-COM | SPRING PROJECT

Customer Microservice Open on the port 8081

customers in the database

Repository Rest Controller with Projections


Inventory Microservice Open on the port 8082

view products

Repository Rest Controller


Gateway Static Configuration and Test

Gateway application.yml configuration

Gateway application.yml configuration

Gateway test with the /customers paths

Gateway working properly


Gateway configuration with a bean function

Gateway application.yml configuration


Gateway configuration with a bean function

Gateway test with the /products paths


Discovery Service started

all services registering on discovery

All services registering on Eureka discovery service


After enabling the discovery service, we can make a dynamic configuration for the gateway

Dynamic configuration of the Gateway

dynamic config using the load balancer

Dynamic config using the load balancer and it's still working properly

We can also make the routing dynamically by using a Bean function which return a DiscoveryClientRouteDefinitionLocator and get the microservice from the request

dynamic config using the Bean


p>Our gateway still working

dynamic config using the Bean


Billing Service

The billing service communicate with other microservices

p>We now get information about products and customers on the bill with the OpenFeign