I'm following the "SignalR Tutorial" on : http://www.asp.net/signalr/overview/hubs-api/hubs-api-guide-server
So let's assume this simple Chat Method :
public void Send(string name, string message)
{
// Call the addNewMessageToPage method to update clients.
Clients.All.addNewMessageToPage(name, message);
}
Suppose that I have a Chat room with 50 000 users. Would there be any benefit of changing the Send method to be async, like this :
public async Task Send(string name, string message)
{
// Call the addNewMessageToPage method to update clients.
await Clients.All.addNewMessageToPage(name, message);
}
- Will IIS hold the current Request (of the user who published the chat) and wait until every clients are notified?
- Is the call to "Client" totally asynchronous under the hood and the request is released at this point?
Thank you!