Application with Nginx, NodeJs and React Very Slow - Impossible to Use #5227
Replies: 1 comment
-
Hi! Your client code seems reasonable. I'd say it could come:
Edit: I see the discussion is closed, were you able to find the culprit? |
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
-
Hi guys,
I was trying to deploy an application using NGINX, React and NodeJS and it gets very slow when many clients are connected. The application consists in one page which list all chats and receives updates and other which is opened when the client clicks on the chat and open it. When the client clicks on the chat it gets very slow to connect and retrieve the data. I have a provider with socket io for the rest of applicaiton and one local instance of socketio connection inside the chat page. I have tried many approaches (namespaces for chats), set up NGINX config for high load, refactor the function in reac which connects to the sockett, but nothing worked.
So, I'd like to ask. for help, because I think the issue could be in the React hook. We used Firestore Cloud, so the application was very fast, after migrating to socket io and many changings and approaches, nothing seems to work.
Socke function:
Edit by @darrachequesne: format
Beta Was this translation helpful? Give feedback.
All reactions