Axon eventing and Spring Cloud Stream

Hi,

I’am wondering, if Axon Framework 3.x supports, or it will support integration with Spring Cloud Stream to distribute events among services and service instances.
We currently uses, the messaging abstraction provided by the Spring Cloud Stream for inter-service eventing. In case, we’ll choose Axon Framework fo Event Sourcing,
we’d like to reuse current programming model.

Thanks,

Ivan.

Not 100% what you’re looking for but a “Spring Cloud CommandRouter” was merged to trunk a couple of days ago (https://github.com/AxonFramework/AxonFramework/pull/214).

Using Kafka as eventstore has been discussed a couple of times on this list, consensus seems positive about it :slight_smile:

Jorg

Hi,

I meant event distribution using Spring Cloud. I’m aware that Spring Cloud Stream and Axon integration is planned, maybe already on roadmap, but it is not available out of the box currently.
My question is, how to easily implement my own Axon Event Bus based on Spring Cloud Stream abstraction? I know Axon is flexible enough, but
I need some quick enabling. Maybe there is some interesting blog targeting Axon extensibility and extension points.

Thanks,
Ivan.

Dňa utorok, 13. decembra 2016 10:13:52 UTC+1 jorgheymans napísal(-a):

Hi,

there is support for connecting the Event Bus to the Spring messaging API. See the axon-spring module: https://github.com/AxonFramework/AxonFramework/tree/master/spring/src/main/java/org/axonframework/spring/messaging

Basically, you can ‘forward’ all events sent on the event bus to a Spring Messaging Channel. I didn’t look intonthe API details of Spring Cloud Stream yet, but my guess is that they use the same APIs.

Cheers,

Allard