This is a simple project to demonstrate how to get Axon Framework (3.3) and JGroups (4) working together in a Docker environment.
For more information about the JGroups integration in Axon, see https://docs.axonframework.org/v/3.0/part-iii-infrastructure-components/command-dispatching
- Docker Compose (https://docs.docker.com/compose/install/)
$ docker build -t axon-jgroups-demo .
$ docker-compose up
You should see a few things:
- Two containers will be started
- They will form a JGroups cluster
- The first container will send 100 commands to Axon
- Axon will distribute the commands evenly over both containers