Distributed Command BUS Using Spring Boot [Sample Code & Configuration Required]

742 views
Skip to first unread message

Saibal Kumar Ghosh

unread,
Mar 14, 2017, 6:17:21 AM3/14/17
to Axon Framework Users
Hi,
    I am trying to make the distributed command bus with sping boot project but could not progress much further. It would be great if someone can provide me with a sample project that will help me out. As of now when I look at the documentation for the same it says that it is yet to come (https://github.com/AxonFramework/ReferenceGuide/blob/3.0/part3/spring-boot-autoconfig.md). Any help would be appreciated.


Saibal


Steven van Beelen

unread,
Mar 14, 2017, 6:37:25 AM3/14/17
to axonfr...@googlegroups.com
Hi Saibal,

You first need to select the spring cloud discovery set up you'd like to use.
I've personally set it up by using an Eureka Server and Client.

I'm taking the stance that you've got an Eureka Server running and your Spring Boot application annotated with @EnableDiscoveryClient for this case.
Axon wise you'd then want to specify the DistributedCommandBus using the a SpringCloudCommandRouter(DiscoveryClient, RoutingStrategy) to route the commands to the correct client and ideally use the SpringHttpCommandBusConnector({local}-CommandBus, RestTemplate, Serializer) to send the commands.

Hoping this helps.

Cheers,
Steven

--
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 axonframework+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saibal Kumar Ghosh

unread,
Mar 14, 2017, 8:52:54 AM3/14/17
to Axon Framework Users
Thanks Steven.

I would appreciate if you can share some code-base to elaborate the same.

Saibal
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.

Steven van Beelen

unread,
Mar 14, 2017, 9:54:22 AM3/14/17
to axonfr...@googlegroups.com
Hi Saibal,

I've just updated the Reference guide to incorporate the Spring Cloud Connector information.
It contains a short example code how you could implement this.

Cheers, Steven


Steven van Beelen - Software Engineer - steven.v...@trifork.nl - http://www.trifork.nl/
Mobile: +31 6 3614 0857 Office: +31 20 486 20 36 Fax: +31 20 475 08 28
Address: 
Rijnsburgstraat 9-11 1059 AT - Amsterdam - The Netherlands

To unsubscribe from this group and stop receiving emails from it, send an email to axonframework+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages