Add sharding support for EventStorageEngine to shard by aggregate type #561
Labels
Type: Question
Use to signal the issue is a question of how the project works and thus does not require development
I am new to Axon, as far as I know, currently all events are stored in a single table or document and there is no event archiving mechanism, size of events will grow indefinitely over time. It would be nice to be able to store events in different table(document) each aggregate type, I suggest:
add a "aggregateType" param to EventStorageEngine read methods, callers need to change to supply this param as well
Add a "DestinationResolver" that resolves event storage destination by aggregateType and aggregateIdentifier(in case of further sharding by identifier)
change implementations of EventStorageEngine to use the resolved event destination, if null, use default(the current one)
Please share your opinions. Thank you.
The text was updated successfully, but these errors were encountered: