Use SignalR with Knockout for real-time UX updates in ASP.NET MVC 3

added by schwarty
12/8/2011 8:39:33 AM

1 Kicks, 323 Views

Learn how to use SignalR and Knockout in an ASP.NET MVC 3 web application to handle real-time UX updates.


1 comments

dpeterson
12/8/2011 8:40:49 AM
I like the way SignalR is designed, but after reading your example I'm wondering how concurrency is handled? What sort of locking is in place to prevent multiple people from buying the last ticket simultaneously? Normally I'd use the interlocked.decrement function on the ticket count, or use an object lock. Does SignalR handle concurrency for us in this case or do we still need to use locks ourselves?