Is it possible to lock affinity of a MassTransit saga to a given consumer?

386 views Asked by At

In a case where the steps of a saga relay on local resources (e.g, temp files) from previous steps, is it possible to force those steps to execute on a given consumer (say the one that fired the event which created the saga)?

I can get around this by creating a centralized file store location, but I am just curious if its possible.

1

There are 1 answers

5
Travis On BEST ANSWER

Not really. They aren't really designed with any sort of affinity. It's normally only really a problem if you are load balancing the consumers/sagas though. Is this the case?

Depending on exactly what you're trying to do, there might be some options but we would need a little more detail. The mailing list might be better place to explore this a bit more: https://groups.google.com/group/masstransit-discuss.