I have a problem with Axon with Spring Boot + RabbbitMQ.
I currently have a micro service that processes the messages made available by RabbitMQ (which Axon has inserted) and then I do an insert in my Database (postgresql/MongoDB).
So I have three Databases: Normal BD(postgresql), EventStore(Axon), NoSQL(MongoDB)
But if I do a delete of a patient in “postgresql” or “MongoDB”, after my application restarts, as I’m recovering all my inserts that I had already done. I have the impression that it is related to axon events, as axon sees that it doesn’t exist in that database or something like that, it retrieves that event in TrackingEventProcessor and runs again, I would like to have full control of my messages. I understand that events should not be deleted, but my application database would like to have control.
Could you indicate how I can do this?
I’m using the SendAndWait() method to send the commands and in the projection I’m using the framework’s default settings