Queues and Saga Patterns

128 views
Skip to first unread message

Dmitry Mikhaylov

unread,
Mar 24, 2016, 3:01:33 PM3/24/16
to masstransit-discuss
Hello everybody,

Reading documentation and playing around with code I got couple questions that, I believe, you can help me with:

  1. Azure Service Bus has separate permissions set for shared keys. Is it possible to give a mass transit receiving endpoint read-only access to Azure Service Bus?
      Now when I tried to connect with read-only shared key, mass transit said that it needs management permissions.

  2. If I got saga pattern right, main responsibility of saga is to coordinate and correlate events in a distributes app. Am I right with idea that when saga reacts on incoming message it fires a command to a queue for processing. With that in place saga receiving queue should be different, right? 

  This is how I understand flow and setup (see attached draft picture).
     - Saga is registered on receiving endpoint on queue "saga_queue". For instance saga coordinates two data processing steps: Processor A and Processor B. When saga is initialized it should send processing command to queue "a_processing_queue".
     - When processing A is done, sage translates to another step and kicks processing B.
     - Auto-scaled set of Processors A are receiving on queue "a_processing_queue". 
     - When processor A done with a task it publishes event "Processor A is done with the task".
     - A event it would be received on all endpoints. Saga instance will react on this event.
     - With this step Saga will send command to "b_processing_queue".
     - When Data Processor B is done with processing it publish "Processor B is done with the task" event.
     -  Saga reacts on the event, translates to final step.

Please let me know if this does not make sense, or if I got the thing wrong.



Regards,
Dmytro

Chris Patterson

unread,
Mar 25, 2016, 9:44:03 PM3/25/16
to masstrans...@googlegroups.com
MassTransit requires manage permissions for access to service bus. 

__
Chris Patterson




--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/706edf99-c581-4cbb-ba9d-77f6aff18870%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages