A message’s journey through Axon Framework
In your application, you probably have created a couple of components:
- client code that issues commands
- a command handling component
- an event handling component
But how does Axon Framework call these components precisely? The reference guide explains all available infrastructure components but does not have an overview of how and when each component is called.
Below you find a presentation that addresses this question of "How do they do it"; it shows the flow of starting up an Axon application and the steps and framework components involved in handling a command message and any resulting event messages.
The code that you see is from the cookbook recipe Simple application using Axon Framework and Spring Boot and revolves around a simple banking application that allows you to create accounts and deposit to or withdraw money from that account. In the walkthrough, I'll follow a command to withdraw some money from an account aggregate created earlier.
I'm using the Axon Spring Boot Starter, so this walkthrough uses a SimpleCommandBus, event-sourced Aggregates, and Subscribing Event Processors. In the future, I may expand on this by creating some more walkthroughs, but then for asynchronous command or event processing.
If you'd like to learn more about the inner workings of the Axon Framework, we host regular training.
Check out our embedded slideshow to find out How do they do it?