Reputation: 1
I am using AxonIQ AxonFramework version 4.5.3
with Spring Boot and custom event store.
I'm using MongoEventStorageEngine
and configured a separate MongoDB database for the EventStorage
.
I am doing some business logic with my business database through a microservice. In the same microservice, I've configured the custom EventStorage.
But a few tables (viz. association_value_entry, saga_entry, token_entry) are getting created on my business database which is a PostgresDB.
Why is AxonFramework creating new tables in my business database as I have already configured a separate MongoDB database for EventStorage. All the related database objects for Axon to work should be ideally created in the EventStorage database rather than in my business database.
Upvotes: -1
Views: 160
Reputation: 1920
The tables you are mentioned should be part of your 'read' model (I believe that is what you called business database
).
They are not used for Event Storage or Event Sourcing but rather to specific things that are controlled on client side. For example, token_entry
, among other things, is the table where your app keep track of the tokens and events it already consumed - you can read more about it here. Similar to the saga tables, where Sagas are stored on the client side having nothing to do with the Event Store - you can read more about it here.
Upvotes: 0