Skip to content

Mark1708/spring-boot-basic-microservice

Repository files navigation

spring-boot-basic-microservice

Java Spring

This is a simple microservice architecture for converting and pricing currencies, built with Spring Boot and Spring Cloud.

Table of contents

General info

It consists of two microservices:

  • Forex Service - FS for short
  • Currency Conversion Service - CCS for short

Microservices

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.
Deployment Eureka

Technologies

  • Java - version 11
  • Spring Boot - version 2.4.4

Code Examples

Request 1

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,
}

Request 2

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,
}

Features

  • Microservice architecture
  • Used by Ribbon for load balancing
  • Eureka nameserver is used

Status

Project is: finished

Inspiration

The project was created for educational purposes

Contact

Created by Gurianov Mark - feel free to contact me!

+7(962)024-50-04 | mark1708.work@gmail.com | github

Readme Card

About

This is a simple microservice architecture for converting and pricing currencies, built with Spring Boot and Spring Cloud.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages