Skip to content

julianvasa/microservices-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imagine a modular insurance product. People can choose from 4 modules. Each module has a different selectable coverage and a different mathematical risk.

These are the modules:

  • Bike (Coverage 0-3k, Risk 30%)
  • Jewelry (Coverage 500-10k, Risk 5%)
  • Electronics (Coverage 500-6k, Risk 35%)
  • Sports Equipment (Coverage 0-20k, Risk 30%)

The user should be able to select the coverage for each module and see the calculated price. The price of the tariff, which is the individual configuration for each customer, should be calculated based on the risk:

[price] = [coverage]*[risk]

The solution should store calculated prices and make them accessible via an endpoint.

Run the registration service first

mvn clean install package

cd registration/target

java -jar registration-1.0.jar

Run the other services

cd bike/target

java -jar bike-1.0.jar

... the same for all other serivices

Check if all services have been registered to the registration service http://localhost:1111

About

A basic microservices skeleton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages