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.
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: