https://github.com/davidfowl/smartloadbalancer
Sticky sessions without sticky sessions
https://github.com/davidfowl/smartloadbalancer
Last synced: 4 months ago
JSON representation
Sticky sessions without sticky sessions
- Host: GitHub
- URL: https://github.com/davidfowl/smartloadbalancer
- Owner: davidfowl
- Created: 2022-12-10T09:29:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-15T08:06:42.000Z (about 2 years ago)
- Last Synced: 2025-03-14T20:58:19.187Z (4 months ago)
- Language: C#
- Homepage:
- Size: 71.3 KB
- Stars: 74
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/microsoft/reverse-proxy/) session affinity provider that can be used to affinitize signalr
connections.## Running the Sample
This requires [tye](https://github.com/dotnet/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:
