Spring Cloud
Spring Cloud is an alternative approach to distributing the command bus (commands), besides Axon Server as the default.
The Spring Cloud Extension uses the service registration and discovery mechanism described by Spring Cloud for distributing the command bus. You thus have the choice of which Spring Cloud implementation to use when discovering the routes to distribute your commands. An example of that would be Netflix' Eureka Discovery/Eureka Server combination or HashiCorp’s Consul.
To use the Spring Cloud components from Axon, make sure the axon-springcloud
module is available on the classpath. The easiest way is to include the Spring Cloud starter (axon-springcloud-spring-boot-starter
) from this extension to your project.
Giving a description of every Spring Cloud implementation would push this reference guide too far. For information on other Spring Cloud implementation options out there, please refer to their respective documentations.
The Spring Cloud connector setup is a combination of the SpringCloudCommandRouter
and a SpringHttpCommandBusConnector
. The former is the CommandRouter
and latter the CommandBusConnector
, both used by the DistributedCommandBus
to enable command distribution.