Skip to content

ewolff/microservice-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice Spring Sample

This demo uses Spring Boot to solve the typical problems of microservices.

This project creates a complete microservice demo system. are implemented in Java using Spring Boot.

It uses three microservices:

  • Order to accept orders.
  • Shipping to ship the orders.
  • Invoicing to ship invoices.

How to run

See How to run.

Video / Podcast

Check out the video Microservices with Spring (German with auto-translated subtitles in your preferred language). Other formats including a Podcast are available at Software Architektur im Stream.

Remarks on the Code

The microservices are:

The microservices have an Java main application in src/test/java to run them stand alone. microservice-demo-shipping and microservice-demo-invoicing both use a stub for the other order service for the tests.

The data of an order is copied - including the data of the customer and the items. So if a customer or item changes in the order system this does not influence existing shipments and invoices. It would be odd if a change to a price would also change existing invoices. Also only the information needed for the shipment and the invoice are copied over to the other systems.

The job to poll the order feed is run every 30 seconds.

About

A microservices sample using Spring Boot features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published