I am starting a project where I want to have multiple services that communicate with each other using the axon server.
I have more than one service with the following stack:
- Spring Boot 2.3.0.RELEASE (with starters: Data, JPA, web, mysql)
- Axon Spring Boot Starter - 4.2.1
Each one of the services uses different schemas in the mysql server.
When I start the spring boot service with the axon framework activated, some tables for tokens, sagas, etc are created in the database schema of each application.
I have two questions
In the architecture that I am trying to build, should I have only one database for all the ‘axon enabled’ services, so the sagas, tokens, events, etc are only in one place?
If so, can anyone provide an example of how to configure a custom EntityManagerProvider to have the database of the service separated from the database of Axon?