September 2023
Intermediate to advanced
470 pages
11h 12m
English
Let’s take a step back to look at the big picture—how commands and events work with requests and responses. The diagram below visualizes how a Request gets transformed into a Response using commands and events:

As shown in the diagram, a request gets converted into a command, and then the output becomes the response.
The next step is for the HTTP route to generate our command and pass it to the hub. We need to create a method, handle, on the hub that we can call from the routes. Exactly like the one we wrote in our tests, it will process the command and store the events. Since handle needs the command handler and the event ...
Read now
Unlock full access