Skip to content

davidfowl/SmartLoadBalancer

Repository files navigation

Smart load balancing for SignalR

When running SignalR behind a load balancer, it requires sticky sessions as SignalR is an inherently stateful technology. This can prove difficult in some pieces of infrastructure since it may be shared for all sorts of applications.

This is a SignalR aware YARP session affinity provider that can be used to affinitize signalr connections.

Running the Sample

This requires tye, which can be installed with the following command:

dotnet tool install --global Microsoft.Tye --version 0.11.0-alpha.22111.1

Run tye run in the root of the repository and it will launch 2 instances of the application, a load balancer and a redis container.

Here's how it works:

image

About

Sticky sessions without sticky sessions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages