Multi-Instance Application with SignalR and Redis as backplane
Hello :)
I have an application that I want to have multi-instances of. The application communicates with the frontend via SignalR for various use-cases, but when I launch another instance of the application, the client often fails to connect to the SignalR Hub.
This is how I set Redis as the backplane:
With a single instance it works perfectly fine, but when another instance is introduced, it fails to connect (not always, but quite often).
This is the error I get on the client side:
I also tried using stateful-set for the deployment, but still no luck.
Is there some specific configuration that needs to be set?
NOTE: Redis is a single instance
1 Reply
UPDATE
I believe the fix for this was configuring sticky-sessions on the ingress of the service in kubernetes, it seems to be working now