An open API service indexing awesome lists of open source software.

https://github.com/elfn/spring-cloud-microservices_old-features

Currency calculation implementation through Microservices architecture Design pattern
https://github.com/elfn/spring-cloud-microservices_old-features

Last synced: over 1 year ago
JSON representation

Currency calculation implementation through Microservices architecture Design pattern

Awesome Lists containing this project

README

          

# SPRING-MICROSERVICES

mvn spring-boot:run -Drun.jvmArguments='-Dserver.port=8088'

Config server => Used to centrilized all MS configs

##-----------DYNAMIC SCALE UP AND DCALE DOWN---------------------

Naming server => Has 2 main features MS registration, and MS discovery
Ribbon => Used to load balancing between MS instances
Feign => Used as mecanism to create restful clients

##-----------VISIBILITY AND MONITORING---------------------

Zipkin, Sleuth => Used for distributed tracing
NETFLIX api gateway => Used as Architecture gateway

##-----------FAULT TOLERANCE---------------------
Hystrix => Used to configure default response if a service is down

##------------------How I created that architecture------------
1 - Setting up Limit MS
2 - Setting up config server
3 - Setting up git local repository(To be linked with config server for centralize MS configs)
4 - Setting up currency exchange service
5 - Setting up currency conversion service
6 - Setting up Eureka server

Lauching order
1-Eureka naming server(mvn spring-boot:run)
2-Zipkin tracing distributed server(RABBIT_URI=amqp://localhost java -jar zipkin.jar)
3-Currency conversion and exchange microservices(mvn spring-boot:run)
4-Netflix zuul api-gateway server(mvn spring-boot:run)

SLEUTH => Is a library that allows distributing tracing by
giving a unique ID to a request

https://zipkin.io/pages/quickstart

Make Zipkin listen RABBITMQ To trace requests
RABBIT_URI=amqp://localhost java -jar zipkin.jar

//Eureka
http://localhost:8761/