A Cloud Native App with Spring Coud Security with KeyCloak Auth Server, API Gateway Server, Naming Server, Config Server and Distributed Tracing and ELK Stack hosted in K8s
./run-multi-stage.sh (it will run all tools which our services needs such as keycloak server, discovery server, databases, zipkin, rabbitmq and elk-stack)
cd ..
./run-multi-stage.sh (it will up the microservices)
This App basically converts a currency from given country code to targeted country code by following the cloud native approach.
api-gateway provides a gateway for end clients (web browsers, mobiles) to interact the resource servers (micro-services)
An Actor (React Client, React Native Client) can interact with the micro-services through the api-gateway
In above diagram, We can see:
An End Client can access the resource servers through the api-gatewy
There are five resource servers:
currency-conversion service abstract the functions of getting exchange rate from currency-exchange service and converting this exchange rate by the help of math service.
currency-exchange service return the exchange rate between two currencies.
math service convert the currency to another currency using the exchange rate.
country service return all countries
user service is related about user information
An api-gateway exposes its URLs to Clients
Keycloak Server (For OAuth2 Authentication and Authorization)
Discovery Server (For services discovery)
Distributed Tracing Stack, for request tracing in micro-service architecture
ELK Stack, for Centralized Logging
Config Server to get distributed app configurations (hosted in github/public-repo) for each micro-service