This is a simple microservice architecture for converting and pricing currencies, built with Spring Boot and Spring Cloud.
It consists of two microservices:
- Forex Service - FS for short
- Currency Conversion Service - CCS for short
It uses tape to distribute the load between multiple instances of the Forex service, and Eureka as the name server. If you launch new instances of the Forex service, you can see that the load is automatically distributed between them.
- Java - version 11
- Spring Boot - version 2.4.4
GET to http://localhost:8100/currency-converter-feign/from/EUR/to/INR/quantity/10000
{
id: 10002,
from: "EUR",
to: "INR",
conversionMultiple: 75,
quantity: 10000,
totalCalculatedAmount: 750000,
port: 8000,
}
GET to http://localhost:8100/currency-converter-feign/from/EUR/to/INR/quantity/10000
{
id: 10002,
from: "EUR",
to: "INR",
conversionMultiple: 75,
quantity: 10000,
totalCalculatedAmount: 750000,
port: 8001,
}
- Microservice architecture
- Used by Ribbon for load balancing
- Eureka nameserver is used
Project is: finished
The project was created for educational purposes
Created by Gurianov Mark - feel free to contact me!