-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimisations #89
Comments
Hello, I agree there are some optimisations to do. Do not hesitate to send a PR ;-) About websockets, this is our big next task on the chat application. We have to study how it fits with the chat application. |
Yes indeed, it makes sense to keep notifications requests in background if we want desktop notif :) I'll try to post a PR as soon as possible, it could be an improvement before a websocket version comes out. |
Hello, Note that problems appeared when i have 500+ users each with 50 rooms (80% users, 20% space) refreshing every 5 seconds (100 request/s) Here's the modifications i've done, response times are now 5 times better on a 2-shards database : NotificationServiceImpl.java :
ChatServiceImpl.java :
|
Thanks @Grisha78 . I will create a PR based on your changes as soon as I can. If you have the time to do the PR in the meantime, do not hesitate ;) |
Hello, thanks as i have some free time this week i will do it :) Is it more convenient to make a branch per optim (read optim will affect portlet) ? |
Good to hear :) |
Hello,
I think the app performance could benefit from stopping sending useless requests, and it would be done at low cost on client side :
Besides that, what your toughts on using websockets instead of polling ? It could be interesting but when i look at Google and Facebook, they dont use websockets and continue to use long polling (maybe due to some lack of reliabily) !
So Is there a real use case (intranets limited chat, smaller company, high latenty networks) ? Or should we only rely on some of the http/2 improvements (reduced handshake, header size) and keep doing (fast/long) polling ?
The text was updated successfully, but these errors were encountered: