Load balancing SignalR
Hi all,
I've created a SignalR application and currently running on a single Web worker.
What will happens if I scale it to more than one worker?
Does load balancing manage it with a sticky session?
Any other good to know advice to run SignalR on AppHarbor?
Thanks,
Alessandro.
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by rune on 20 Oct, 2016 02:07 PM
Hi Alessandro,
AppHarbor doesn't manage sticky sessions (mostly because it's fairly unreliable across deployments) so my best advice would be to design the application to scale out with a shared database or queue system. There are a few options for this, but you might want to consider using SignalR's Redis support for this -- there are also a few Redis add-ons in the add-on catalogue you might want to use.
Best,
Rune