Axon eventing and Spring Cloud Stream

734 views
Skip to first unread message

ivan macalak

unread,
Dec 10, 2016, 7:22:36 AM12/10/16
to Axon Framework Users
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.

jorgheymans

unread,
Dec 13, 2016, 4:13:52 AM12/13/16
to Axon Framework Users
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 :-)

Jorg

ivan macalak

unread,
Dec 13, 2016, 10:22:14 AM12/13/16
to Axon Framework Users
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):

Allard Buijze

unread,
Dec 13, 2016, 1:35:38 PM12/13/16
to Axon Framework Users
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
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages