Book Image

SignalR Real-time Application Cookbook

By : Roberto Vespa
Book Image

SignalR Real-time Application Cookbook

By: Roberto Vespa

Overview of this book

Table of Contents (18 chapters)
SignalR Real-time Application Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Scaling out with Redis


The Windows Azure Service Bus backplane is very interesting, but it's also based on an external infrastructure, which might not always be a viable option. Also, the resilience characteristics of the Windows Azure Service Bus are great for guaranteed delivery, but they have some impact in terms of messaging throughput. Therefore, the SignalR team provided a high-performance alternative with a backplane based on Redis.

Redis is an in-memory key-value store, with a persistence strategy to make data durable, but its main focus is speed, which it achieves through its in-memory model. It has a publish/subscribe structure whose characteristics are ideal to be used as the foundation for a SignalR backplane.

In this recipe, we'll describe how to set up a Redis instance on a Windows machine, and how to configure the Redis backplane on a sample application.

Getting started

In order to keep the discussion focused on the actual topic, we'll reuse the code we wrote in the previous...