0

I have a WPF application used by up to 10 users, which needs to communicate with Azure Functions but also send events between applications.

For this I have created a Event Grid Topic in Azure and a Hybrid Connection. This makes it possible for me to publish an event from outside Azure and consume it as well all done i C#. However even though there are multiply applications open and listening to the event only one application receives the Event.

Is it possible to use the same Hybrid Connection for multiply applications and all of them receives the Event? Or are there another way of making this happen using Azure? I don't know in advance how many applications are open and will need the Event.

Mdh
  • 55
  • 4
  • 2
    Hybrid Connection doesn't support a multicasting, so in your scenario the event message is delivered only to one application in the balanced manner. I do recommend for your case to use a Azure SignalR Service (Azure Web PubSub) for multicasting an event message to all connected applications in the loosely decoupled manner. – Roman Kiss Dec 08 '21 at 20:46
  • 1
    Thanks Roman, that solved my problem. With further research I discovered that SignalR can be used in combination with Azure Event grid : https://stackoverflow.com/questions/64764117/azure-event-grid-subscription-to-console-application – Mdh Dec 09 '21 at 21:05

1 Answers1

0

Echoing to Roman Kiss, posting your suggestion as answer to this to help the other community members.

Hybrid Connection doesn't support a multicasting, so in your scenario the event message is delivered only to one application in the balanced manner. I do recommend for your case to use a Azure SignalR Service (Azure Web PubSub) for multicasting an event message to all connected applications in the loosely decoupled manner.

VenkateshDodda
  • 4,723
  • 1
  • 3
  • 12