Microservice Atom Sample

Deutsche Anleitung zum Starten des Beispiels

This is a sample to show how the Atom protocol can be used for the communication between microservices. Atom is originally designed to let users subscribe to feeds like blogs. Any new blog post is published in the feed. However, this approach can be used for data such as information about order, too.

The project creates Docker containers.

It uses three microservices:

Technologies

How To Run

See How to run for details.

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 Atom feed is run every 30 seconds.