查询处理
Query Processing
最后更新于
Processing as a dedicated type of message is in line with separating the query models when following . Although creating a query handling layer is fairly straight-forward, using Axon Framework for this part of the application has a number of benefits.
Through providing the functionality to describe query handling methods (as further explained in section) and a dedicated bus for query messages, common message features such as and can be used.
The next sections provide an overview of the tasks related to configuring the necessary components to start processing queries in an Axon application. To that end the approach to registering @QueryHandler
annotated methods is discussed, as well as what options are present when it comes to dispatching queries.
Query Types
Axon Framework makes a distinction between three types of queries, namely (1) (2) , and (3) .
Click the links for specifics on how to implement each type of query.