SignalR: real-time web development in .NET
Posted: Mon Jan 07, 2013 2:48 am
I was wondering why Microsoft was taking their time to make a move into real-time web development. Node.js Azure makes it look like they are content to piggy-back on node to achieve real-time communication, but now something is filling the void. I don't believe it was made by Microsoft, but from the looks of the ASP.NET website, even if it wasn't, it appears to have Microsoft's blessings and support.
Anyway, it is called SignalR, and its promises are much easier real-time web development in the .NET ecosystem (ASP.NET Web Forms and ASP.NET MVC). I have not dug much into it yet, but there is a video on the ASP.NET website discussing it. It obviously uses Web Sockets under the covers and it appears to be event-oriented instead of asynchronous. That could be a huge benefit for game developers, since it would offer you the best of both worlds: evented for when that works best, but you could also use traditional threads for things such as the game upkeep loop. I respect node, but sometimes the 100% async platform just seems like over-kill and sometimes you wish you could just fire up a thread. This can actually go the opposite way from what node intended by making the work-around harder than the threaded solution you were trying to avoid in certain circumstances.
If you are a .NET developer and are interested in real-time, maybe check SignalR out! It already seems to have a large following!
Anyway, it is called SignalR, and its promises are much easier real-time web development in the .NET ecosystem (ASP.NET Web Forms and ASP.NET MVC). I have not dug much into it yet, but there is a video on the ASP.NET website discussing it. It obviously uses Web Sockets under the covers and it appears to be event-oriented instead of asynchronous. That could be a huge benefit for game developers, since it would offer you the best of both worlds: evented for when that works best, but you could also use traditional threads for things such as the game upkeep loop. I respect node, but sometimes the 100% async platform just seems like over-kill and sometimes you wish you could just fire up a thread. This can actually go the opposite way from what node intended by making the work-around harder than the threaded solution you were trying to avoid in certain circumstances.
If you are a .NET developer and are interested in real-time, maybe check SignalR out! It already seems to have a large following!