Long-running tasks blocking the WebSocket process #502
programarivm
started this conversation in
Show and tell
Replies: 1 comment
-
This is expected behavior for Node.js as well. Remember, don't block the event loop.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the advantages of using open source software is that almost everything is done publicly.
As you may probably know, at some point it was decided to rewrite the API endpoints in the chesslablab/chess-api repo in the form of WebSocket commands in the chesslablab/chess-server. The reason being was mainly because this setup looked simpler and cheaper.
😅 However, whether using Workerman or Ratchet, the staging server has demonstrated that there is something wrong with this setup. The current WebSocket server is pretty much unusable if there are a few users connected at the same time.
Stay tuned!
Beta Was this translation helpful? Give feedback.
All reactions