Skip to content

kingshuknandy2016/SpringBootMicroserviceDeployment-UsingTektonOnKubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Microservices

Two microservices projects are present here which is developed in Spring Boot Framework.
Both the Projects has unit test cases there itself.

Currency Exchange Service

If you ask it the value of 1 USD in INR, or 1 Australian Dollar in INR, the Currency Exchange Service answers

  • 1 USD is 60 INR
  • 1 Australian Dollars is 50 INR.

http://localhost:8000/currency-exchange/from/EUR/to/INR

{
  "id": 10002,
  "from": "EUR",
  "to": "INR",
  "conversionMultiple": 75.00,
  "exchangeEnvironmentInfo": "37f1ad927c6e v1 27c6e"
}

Currency Conversion

Currency Conversion Service is used to convert a bucket of currencies. If you want to find the value of 10 USD, Currency Conversion Service returns 600.

  • STEP 1 : Currency Conversion Service calls the Currency Exchange Service for the value of 1 USD. It gets a response back saying 60.
  • STEP 2 : The Currency Conversion Service then multiplies 10 by 60, and returns 600 back.

http://localhost:8100/currency-conversion/from/EUR/to/INR/quantity/10

{
  "id": 10002,
  "from": "EUR",
  "to": "INR",
  "conversionMultiple": 75.00,
  "quantity": 10,
  "totalCalculatedAmount": 750.00,
  "exchangeEnvironmentInfo": "37f1ad927c6e v1 27c6e",
  "conversionEnvironmentInfo": "fb6316b5713d v1 5713d"
}

How does Currency Conversion know the location of Currency Exchange?

  • You don't want to HARDCODE
  • Configure an Environment Variable - CURRENCY_EXCHANGE_SERVICE_HOST
  • --env CURRENCY_EXCHANGE_SERVICE_HOST=http://currency-exchange

Tekton Files

It contains all Tekton Deployment Files that are required to deploy the microservices in Tekton Pipeline in Google Kubernetes Enjine

About

SpringBoot MicroServices Deployment using Tekton on Kubernetes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published