Enhancing Order Processing with Orchestrated Sagas

Explore how to create message handlers and update the composition root in Saga order creation in the Order Processing module.

Creating the message handlers

As discussed earlier, we will be listening for the OrderCreated integration event from the Order Processing module as our trigger. The design of the actual handler itself is just like the others, but we start a saga instead of creating a data cache or executing some application command:

Get hands-on with 1400+ tech skills courses.