Azure SignalR Message Delivery Queue

Peter Hyde 1 Reputation point
2022-12-08T15:45:15.62+00:00

I am creating a POC using Azure SignalR in Serverless mode. I have successfully created a .Net 7 server web api, and a .Net 7 client console app. The server can send messages thru Azure SignalR and the client receives them. What I am looking for is if there is any kind of server-side queueing of messages built into Azure SignalR serverless mode for situations where a client has temporarily disconnected. I read that regular SignalR (self-hosted, not the Azure service) would queue up to 1000 messages per client, but I can see no such information for Azure SignalR. Also I tried a quick test sending 10 messages from my server app when the client was disconnected, then I connected the client a minute later, and no messages were received. This leads me to believe there is no such message queuing mechanism for later delivery to disconnected clients, but I wanted to ask so I can be sure.

Assuming there is no such queueing mechanism, what about Azure Web PubSub, does it implement any kind of queueing mechanism for temporarily disconnected clients?

Thanks.

Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
131 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,866 Reputation points Microsoft Employee
    2022-12-17T02:48:33.62+00:00

    Hi @Peter Hyde ,

    Apologies for the late reply. I was looking into your ask and there isn't any message delivery queue in either SignalR or Web PubSub service offerings. These are real-time communication so there isn't any queueing of the sort.

    If you want to do reliable messaging, it's going to have to be something handled by your application. One option you have the client send ack message upstream to the publisher/service. When you client fails to send the acknowledgement, then you can do something on the server side to start retaining messages and resend them to the disconnected client.

    Web PubSub can retain messages for a 1-minute period. Now this isn't a message queue like you're looking but it may be another option you can look into rather than doing acknowledge message.

    0 comments No comments