Home

Awesome

Microservice Sample

<details> <summary>Translations:</summary> </details>

This is a sample for my Microservices Book (English / German).

This project creates a VM with the complete micro service demo system in Docker containers inside a Vagrant VM. The services are implemented in Java using Spring and Spring Cloud.

It uses three microservices:

Technologies

How To Run

The demo can be run with Vagrant or Docker Machine and Docker Compose.

How to run includes more details.

<details> <summary>Translations:</summary> </details>

Remarks on the Code

The servers for the infrastructure are pretty simple thanks to Spring Cloud:

The microservices are:

The microservices have a Java main application in src/test/java to run them stand alone. microservice-demo-order uses a stub for the other services then. Also, there are tests that use customer driven contracts. That is why it is ensured that the services provide the correct interface. These CDC tests are used in microservice-demo-order to verify the stubs. In microserivce-demo-customer and microserivce-demo-catalog they are used to verify the implemented REST services.