What is this?

A demonstration of implementing "Commands", a mechanism to "guarantee", within limit ;-)data consistency across multiple microservices. See the blog article: http://blog.maxant.co.uk/pebble/2018/02/18/1518974314273.html.

More information here

Based on Swarm application with:

  • JAX-RS
  • CDI
  • EJB
  • JPA
  • JTA
  • Project Stages (Configuration)
  • Flyway
  • Tests using H2, Prod with Mysql

Build and run:

mvn clean install && java -jar target/demo-swarm.jar

Run tests using Mysql, rather than in-memory H2:

mvn test -Dtest.use.mysql

Debug:

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044

#Useful Links

Issues

  • none

TODO