看了蛮多文章，只会CRUD，却不懂CQRS，CQRS是遵循DDD思想而产生的一种模式，Command and Query Responsibility Segregation 命令与查询隔离。查询就直接通过正常的模式service调dao层。而涉及到insert或update时，先经过CommondBus进行转发，用command来实现具体的数据库写逻辑，在接口层就定义好了读写分离职责。其中组件还有 eventSource，CommandHandle是事件驱动的。
Axon Framework Build Status
Axon Framework is a framework for building evolutionary, event-driven microservice systems, based on the principles of Domain Driven Design, Command-Query Responsibility Segregation (CQRS) and Event Sourcing.
As such it provides you the necessary building blocks to follow these principles. Building blocks like Aggregate factories and Repositories, Command, Event and Query Buses and an Event Store. The framework provides sensible defaults for all of these components out of the box.
This set up helps you create a well structured application without having to bother with the infrastructure. The main focus can thus become your business functionality.
For more information on anything Axon, please visit our website, http://axoniq.io