Search code examples
.netapache-kafkamasstransit

Sagas Pattern with Kafka and Masstransit


I've been using Kafka and Masstransit for a few days and just stumble upon the Sagas Pattern. I'm thinking of applying this pattern to my app but I'm not sure whether or not Masstransit supports Sagas for Kafka.

I say this because most of the Sagas examples that I could find on the Masstransit docs were applied to RabbitMQ and I know Kafka and RMQ work a bit differently.


Solution

  • It turns out that Masstransit actually provides a great support when it comes to the sagas pattern. I was able to explore some of the resources provided by the package through a POC.

    Here as an application demo coupling everything together.

    I'm sure that still have a lot to explore, tho! :)