A
A
Andrew2017-05-09 16:30:40
ASP.NET
Andrew, 2017-05-09 16:30:40

How to increase the reliability of SignalR?

I'm starting to learn SignalR, and the following questions arose (on the example of a chat):
1. Suppose, at the time of sending a message by one client, the second lost connection for a split second, and he reconnected. How can the second client not lose this message?
2. Suppose the second client disconnected for a while (went into sleep mode, for example), and then returned online. How can the second client get a list of missing messages when the connection is restored?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2017-05-09
@shavakerzh

Hello.
SignalR is needed to deliver events from the server to the client and nothing more.
The described tasks can be solved if messages are stored (in a database, for example).

A
Artem, 2017-05-09
@devspec

Use message queues, that's what they're designed for.
For .NET, a good and simple "out of the box" option would be MSMQ.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question