O'Reilly logo

SignalR - Real-time Application Development - Second Edition by Einar Ingebrigtsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Working with a solution over multiple servers can easily become a nightmare. A state being kept in memory on one server is not available on the second, leading to weird scenarios as a result. Having a stateless server is vital in those scenarios and also when applying SignalR in a multi server environment. Hubs or persistent connections should not keep the state floating around locally on a server, but it should be architected in a way to accommodate the fact that you're running distributed environment. There is no guarantee as to what server the SignalR is connecting to, and also if the client needs to reconnect, so the scale-out option is absolutely vital to the story. With the different options described in this chapter, you should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required