Skip to content

Learnt how to communicate between different microservices using service discovery tool like Eureka

Notifications You must be signed in to change notification settings

pkvijay65/stock-microservice-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Description

  • This project consists of two microservices: Stock Calculation and Stock Price Service. The microservices are registered with a Eureka server and provide functionality related to stock calculations and retrieving stock prices.

Stock Calculation Microservice

  • The Stock Calculation microservice includes a REST controller class named StockCalculationRestController that handles the stock calculation functionality.

Stock Price Microservice

  • The Stock Price microservice includes a REST controller class named StockPriceController that handles the stock price retrieval functionality.

Endpoints

The project includes the following endpoints:

Stock Calculation Microservice:

GET /calculate/{companyName}/{quantity}: 

Calculates the total cost of stocks for the specified company and quantity.

Stock Price Microservice:

GET /price/{companyName}: 

Retrieves the stock price for the specified company.

Learning Outcomes:

With the help of this project, I learned:

  • Implementation of microservices using Spring Boot.
  • Utilizing the Eureka server for service registration and discovery.
  • Sending Custom Exception messages to the client.

Future Enhancements:

  • Implementing a basic front-end for the project.
  • Define more use case specific endpoints.
  • Define more entities and make it more useful for real world applications.

About

Learnt how to communicate between different microservices using service discovery tool like Eureka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages