QueryGateway
interface and the DefaultQueryGateway
implementation. The query gateway provides a number of methods that allow you to send a query and wait for a single or multiple results either synchronously, with a timeout or asynchronously. The query gateway needs to be configured with access to the query bus and a (possibly empty) list of QueryDispatchInterceptor
s.AxonServerQueryBus
. It connects to the AxonIQ AxonServer Server to send and receive Queries.AxonServerQueryBus
is a 'distributed query bus'. It uses a SimpleQueryBus
to handle incoming queries on different JVM's by default.axon-spring-boot-starter
, Axon will automatically configure the Axon Server Query Bus:Excluding the Axon Server ConnectorIf you exclude theaxon-server-connector
dependency you will fallback to 'non-axon-server' query bus option, theSimpleQueryBus
(see below)
SimpleQueryBus
does straightforward processing of queries in the thread that dispatches them. To configure a SimpleQueryBus
(instead of an AxonServerQueryBus
):