Hi,
What are the interfaces/abstract classes to implement to create a new storage engine in Axon 3.1?
I saw they are possibly a lot of concepts to have the full support can you describe them ?
Thank you
Epo J.
Hi,
What are the interfaces/abstract classes to implement to create a new storage engine in Axon 3.1?
I saw they are possibly a lot of concepts to have the full support can you describe them ?
Thank you
Epo J.
Hello,
I am by no means an Axon expert, but until you get a better response, I thought that this image might help. My first instinct would be to look into extending BatchingEventStorageEngine. Of course, it really depends on your actual requirements, but that might make for a good starting point.
Thank you Brian,
I thought there would have more classes/interfaces involved as it might include stuff for replaying events etc …
JDBC and JPA implementation I read somewhere needs 5 tables, can someone detail what is the purpose for each ?
Thank you
Hi Epo,
Below you find a short description for each table, hope this helps:
Cheers, Oscar
Hi Epo,
most of the logic you’d need for the Event Store is implemented in the Event Store. The EventStorageEngine is responsible for the actual storage of events. The BatchingEventStorageEngine is a useful subclass if the storage you use doesn’t know how to directly stream data. It assumes it needs to query a stream in batches, instead of opening a stream to the underlying storage directly.
As Oscar pointed out, you will only need to create the equivalents of the DomainEventEntry and SnapshotEventEntry tables in your storage.
Cheers,
Allard