As a newcomer & player with Axon Server (SE edition for now) i have made a simple micro service application.
This application looks like any simple example project we can find on the net, so organized like that:
- 1 aggregate
- 1 creation command
- 1 created event
- 2 queries (find 1 & find all)
- 1 component which handle the event & the queries. It maintains a view of the aggregate state in a simple memory Map. Very basic stuff, just listen to the created event and add it to the map if it does not exists yet.
I used docker compose to run the server and the micro service.
After starting, stopping, rebuilding the micro service, etc. several times to improve my test scenario, i observe that the micro service after starting get all the events which previously happened.
Thus, my view is now in memory so i don’t really care, but this is clearly not the behavior i was expecting by default.
Can someone explain me this behavior and how i can change it ?
Is it because my client ID is not setup in my client application file and then generated & different after each reboot ?
Thanks in advance for your help.