Presented By: Anshuman Shukla
Introduction to Axon
Framework with CQRS
Pattern.
Lack of etiquette and manners is a huge turn off.
KnolX Etiquettes
Punctuality
Join the session 5 minutes prior to
the session start time. We start on
time and conclude on time!
Feedback
Make sure to submit a constructive
feedback for all sessions as it is
very helpful for the presenter.
Silent Mode
Keep your mobile devices in silent
mode, feel free to move out of
session in case you need to attend
an urgent call.
Avoid Disturbance
Avoid unwanted chit chat during
the session.
Our Agenda
01 What is Axon Framework?
02 Axon Components
03 Axon Components Sub Parts
04
05
06
07
Standard Structure.
08
CQRS Architecture
CQRS Command API Flow
DEMO
What is CQRS?
What is Axon Framework?
Axon Framework is an Open-Source Framework for
event driven microservices and domain-driven design.It
is a Java Framework that gives developers access to
repositories,implementations of crucial components
including aggregates,command, and event buses,and
implementations of the CQRS architectural
pattern.Architectural principles like Domain Driven
Design and CQRS are the foundation of the
Framework.With this framework we can build incredibly
Scalable and Flexible applications.
Axon Components
1.Axon Framework,Domain Model- A core framework that
helps you build a domain centered on DDD,Event Sourcing
and CQRS patterns.
2.Axon Framework,Dispatch Model- Logical infrastructure
to support the domain model,that is, the routing and
coordination of commands and queries that deal with the
state of the Domain Model.
3.Axon Server- Physical Infrastructure to support the
Domain/Dispatch Model.
Axon Components
Domain Model Components Dispatch Model Axon Server
Aggregates
Commands/Command Handlers
Events/Event Handlers
Query Handlers
Sagas
Command Bus
Query Bus
Event Bus
Sagas
An Event Store based on H2(used for
storage of configuration) and a file
system(used for storage of event date)
A Messaging Router for the Events
flowing through the system.
What is CQRS?
CQRS stands for Command and Query Responsibility
Segregation.The Command/Query Responsibility
Segregation principle is essentially an application
development pattern that exhorts the segregation between
operations that update state and operations that query state.
Essentially, CQRS advocates usage of
Commands to update the state of various application
objects(Aggregate within a Bounded Context)
Queries to query the state of the various application
objects(Aggregate within a Bounded Context)
Controller Service Repository
GET
POST
PUT
DELETE
PATCH
Database
Standard Structure
Command API
Command
Command Handler
Events Handler
Query API
Query
Query Handler
Events Handler
Event
Store
Write DB
Read DB
POST
PUT
DELETE
PATCH
GET
CQRS Architecture
Events
Controller Command Gateway Aggregate
Event Store
Event Handler
Repository
/product/add
POST
send
handles
publishes
listens
CreateProductCommand
CreateProductCommand
ProductCreatedEvent
DB
CQRS Command API Flow
Demo
Thank You !
Get in touch with us:
Lorem Studio, Lord Building
D4456, LA, USA

Introduction to Axon FrameWork with CQRS pattern

  • 1.
    Presented By: AnshumanShukla Introduction to Axon Framework with CQRS Pattern.
  • 2.
    Lack of etiquetteand manners is a huge turn off. KnolX Etiquettes Punctuality Join the session 5 minutes prior to the session start time. We start on time and conclude on time! Feedback Make sure to submit a constructive feedback for all sessions as it is very helpful for the presenter. Silent Mode Keep your mobile devices in silent mode, feel free to move out of session in case you need to attend an urgent call. Avoid Disturbance Avoid unwanted chit chat during the session.
  • 3.
    Our Agenda 01 Whatis Axon Framework? 02 Axon Components 03 Axon Components Sub Parts 04 05 06 07 Standard Structure. 08 CQRS Architecture CQRS Command API Flow DEMO What is CQRS?
  • 4.
    What is AxonFramework? Axon Framework is an Open-Source Framework for event driven microservices and domain-driven design.It is a Java Framework that gives developers access to repositories,implementations of crucial components including aggregates,command, and event buses,and implementations of the CQRS architectural pattern.Architectural principles like Domain Driven Design and CQRS are the foundation of the Framework.With this framework we can build incredibly Scalable and Flexible applications.
  • 5.
    Axon Components 1.Axon Framework,DomainModel- A core framework that helps you build a domain centered on DDD,Event Sourcing and CQRS patterns. 2.Axon Framework,Dispatch Model- Logical infrastructure to support the domain model,that is, the routing and coordination of commands and queries that deal with the state of the Domain Model. 3.Axon Server- Physical Infrastructure to support the Domain/Dispatch Model.
  • 6.
    Axon Components Domain ModelComponents Dispatch Model Axon Server Aggregates Commands/Command Handlers Events/Event Handlers Query Handlers Sagas Command Bus Query Bus Event Bus Sagas An Event Store based on H2(used for storage of configuration) and a file system(used for storage of event date) A Messaging Router for the Events flowing through the system.
  • 7.
    What is CQRS? CQRSstands for Command and Query Responsibility Segregation.The Command/Query Responsibility Segregation principle is essentially an application development pattern that exhorts the segregation between operations that update state and operations that query state. Essentially, CQRS advocates usage of Commands to update the state of various application objects(Aggregate within a Bounded Context) Queries to query the state of the various application objects(Aggregate within a Bounded Context)
  • 8.
  • 9.
    Command API Command Command Handler EventsHandler Query API Query Query Handler Events Handler Event Store Write DB Read DB POST PUT DELETE PATCH GET CQRS Architecture Events
  • 10.
    Controller Command GatewayAggregate Event Store Event Handler Repository /product/add POST send handles publishes listens CreateProductCommand CreateProductCommand ProductCreatedEvent DB CQRS Command API Flow
  • 11.
  • 12.
    Thank You ! Getin touch with us: Lorem Studio, Lord Building D4456, LA, USA