5
I’ve been reading about Signalr for the last few days and basically realized that one of its main features is to maintain a persistent server connection with possible clients accessing the server. Basically, it allows us to create Hubs and then allows several clients (which can be both Web and . NET) applications connect to these Hubs and there is a kind of continuous connection.
I’ve been working with web programming since 2009 and this is quite different from the traditional approach using stateless HTTP. In these cases everything is based on requests and answers. The client makes a request, the request is processed in a pipeline on the server, the server returns a response and when the response arrives in the client the connection with the server is over. Even in single-page applications the logic is this, only the server happens to serve a Restful API.
Because I’m used to this approach I’m not being able to see what are the utilities, the real use cases of a persistent connection. This seems to be a very useful thing, but in which cases is it really relevant and makes sense to use?
I always see the same example of chat, which has several connected clients and they need to receive messages from others in real time. All right, it’s a valid example, but the only case of using this kind of technology is sending messages from the server to the client without depending on the client requisition?