someshbhardwaj / microservice_spring_localhost

Currency Conversion System in Spring Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Currency Conversion System in Spring Cloud

Brief about the code or Tech Stack:

  • Currency Exchange MySQL Microservice and Currency Conversion Microservice talks via using Zuul API Gateway.

  • Zuul API Gateway uses Eureka Name Server.

  • Distributed Tracing done through Zipkin and Sleuth

  • Hystrix used for Fault Tolerance,

  • MySQL DB is used in the Currency Exchange MySQL Microservice => Exchange Value table is created using.

Prerequisite

  • One has to download the code.

  • MySQL should be working.

  • Create DB currency_exchange_value_db and table in it exchange_value

  • Code for the same is in link: DB Script

For Distributed Tracing:

Rabbit MQ is used. Please download it at link: RabbitMQ Dowload Please install ErLang before installing rabbitmq. Once you have installed Rabbit MQ

For Running Rabbit MQ In the console, go to the location where you have downloaded *zipkin-server-2.7.0-exec.jar Execute below command (for Windows 10):

set RABBIT_URI=amqp://localhost

java -jar zipkin-server-2.7.0-exec.jar

Eureka Name Server:

Image of Eureka Name Server

API Gateway: API Gateway

Currency Conversion Microservice Currecncy conversion

Currency Exchange MySQL Microservice Currecncy Exchange MySQL

DB MySQL DB Content

Distributed Tracing using Zipkin Zipkin

Checking code flow using Zipkin and sleuth distributed tracing Code flow using Zipkin

URL to test the code.

Zipkin http://localhost:9411/zipkin/

Currency Converter Service - Direct Call http://localhost:8100/currency-converter/from/USD/to/INR/quantity/10

Currency Converter Service - Feign http://localhost:8100/currency-converter-feign/from/EUR/to/INR/quantity/10000

Currency Exchange Service MYSQL- http://localhost:9000/currency-exchange/from/EUR/to/INR http://localhost:8001/currency-exchange/from/USD/to/INR

Eureka - http://localhost:8761/

Zuul - Currency Exchange & Exchange Services http://localhost:8765/currency-exchange-service/currency-exchange/from/EUR/to/INR http://localhost:8765/currency-conversion-service/currency-converter-feign/from/USD/to/INR/quantity/10

About

Currency Conversion System in Spring Cloud


Languages

Language:Java 89.9%Language:TSQL 10.1%