- Notifications
You must be signed in to change notification settings - Fork10.1k
Which adapter to chose - sticky session#5178
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hi everyone. I'm trying to chose which adapter is best suited in my use-case which is the following: We have several servers, each server have several worker that have a socket.io server listening to incoming connections. Here are our needs:
Since we need to be long polling compatible, we need to be able to redirect an incoming connection onto the good server & worker if that's not the first request. The problem is: the redis adapter is NOT compatible with connection state recovery. We then thought about using the redis stream adapter, which is connection state recovery compatible. When trying to implement the redis stream adapter coupled with @socket.io/sticky we kept having the following error: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. code: 'ERR_INTERNAL_ASSERTION' Here is an image (found in the socket.io-sticky README.md) that seems to describe exactly our use case, yet it does not work for us. There are high chance that we are doing something wrong, but also a good chance that we are not using the right tool for our use-case. If anyone has any knowledge on this subject, a little help would be greatly appreciated. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Replies: 1 comment 1 reply
-
Any idea as to when the postgres adapter will be working for the connection state recovery ? |
BetaWas this translation helpful?Give feedback.
All reactions
-
@JojoRebondy I'm looking into this. |
BetaWas this translation helpful?Give feedback.
