Signalr is a Microsoft. NET Framework library and jquery plug-in under development by the ASP. NET team, which may be included in Later ASP. NET platforms. It provides some promising features that are not currently available in. NET Framework and are required by more and more developers.
Signalr is an integrated client and server library. browser-based clients and ASP. Net-based server components can be used for two-way multi-step dialogs. In other words, this dialog can exchange a single stateless request/response data without restriction; it will continue until it is explicitly closed. A dialog is made through a permanent connection. The client can send multiple messages to the server and the server can reply accordingly. It is worth noting that the server can also send asynchronous messages to the client. Similar to Ajax, it is based on existing technologies. Itself is a complex. Generally, signalr uses long polling of JavaScript to implement communication between the client and the server. After the emergence of websockets, signalr also supports websockets communication. Of course, signalr also uses the server's parallel task processing technology to improve the scalability of the server.
Any technology is designed to solve specific problems. Signalr is no exception. We know that the most common feature in website development is the online chat room. Most online chat rooms on the Internet are based on two technologies: 1. Ajax 2. Flash.
The biggest problem to solve in the chat room is message push. When N online users join a chat room at the same time and one user sends a message, the server will forward the message to a specific user.
Previously, JavaScript was used to continuously send requests to train new messages on the server. This method of sending Ajax requests to the server on a regular basis puts a lot of pressure on the server when the user is very large.
The emergence of websockets solves this problem well. It supports actively pushing messages, and signalr supports websockets. We can see that in the future, there will be a large number of Web sockets users.ProgramAnd signalr should also be widely used in ASP. NET websites.
Official site: http://signalr.net/
GitHub: https://github.com/SignalR/SignalR
Signalr. Code, not toothpaste
View more presentations from Microsoft Developer Network (msdn)-Belgium and Luxembourg
RelatedArticle:
- Use signalr to build the progress bar
- Real Time, asynchronous web pages using jtable, signalr and ASP. NET MVC
- ASP. net mvc, signalr and Knockout based real time UI syncing-for CO working UIS and continuous clients
- Streaming live results to a web site using MSMQ/Duplex WCF/signalr/jquery
- Browser alerts with ASP. NET 4.5 and signalr
- Building a user map with signalr and Bing
- Real Time, asynchronous web pages using jtable, signalr and ASP. NET MVC
- Browser alerts with ASP. NET 4.5 and signalr
- Signalr-group communications
- Real-time with ASP. MVC and signalr
- Https://github.com/SignalR/SignalR/wiki/Projects-Using-SignalR
- Http://www.dotblogs.com.tw/regionbbs/archive/2012/07/01/implement.server.push.mode.on.mvc.with.signalr.aspx
From: http://www.cnblogs.com/shanyou/archive/2012/04/14/2447750.html