Hi team,
I’ve been trying to get the axon framework working with micronaut, and I’m at a point now where as a POC it’s all working. I’ve documented it here
https://github.com/CraftyFella/axonIq-framework-micronaut
I would love to get some feedback from anyone with more experience of axon to make sure i’m doing things in a sensible way. Some parts that i found challenging were getting the transaction manager working. I wanted to prove that with a subscribing projection that throws an error both the events AND the projection values would be rolled back and they were yay… I made use of JDBC as I wanted to get it working at the lowest level first. see
UnitOfWorkAwareConnectionProviderFactory.kt
and UnitOfWorkAwareTransactionManager.kt
the existing UnitOfWorkAwareConnectionProviderWrapper was super useful thanks.
Also as the team move into V5 work i wanted to show you what I’ve done to make it work with deciders
I documented this to show you the options I have with Axon 4 and I hope that with Axon 5 we have even better options.
Looking forward to learning from you all.