spreed icon indicating copy to clipboard operation
spreed copied to clipboard

Chat should not poll the server but use events with the standalone signaling server

Open fancycode opened this issue 7 years ago • 7 comments

The chat currently polls for new messages. When using the standalone signaling server, this should be changed to be event based to reduce the server/database load and improve latency.

fancycode avatar Feb 05 '18 11:02 fancycode

Hmm the chat backend is not settled yet as far as I understood.

nickvergessen avatar Feb 06 '18 16:02 nickvergessen

From my POV we basically listen to the event for new chat/system messages, add a "pull for messages please" message to the signaling and remove the chat polling. The problem I see with this is that the ping was replaced with the chat polling, so this needs to be replaced/kept in mind too.

nickvergessen avatar Dec 07 '18 16:12 nickvergessen

The standalone signaling server "pings" connected clients internally, so this shouldn't be a problem.

fancycode avatar Dec 10 '18 08:12 fancycode

Just noticed this happening and was wondering why we still poll.

I didn't see any signaling events for message sending, so I guess it's not implemented yet in the signaling server ?

PVince81 avatar Oct 23 '20 08:10 PVince81

It's not implemented in the signaling backend in talks php. But also it's something for later

nickvergessen avatar Oct 23 '20 09:10 nickvergessen

But also it's something for later

Is this still valid? What blocks this?

tcitworld avatar Feb 05 '24 13:02 tcitworld

Allocating time on all clients. It's still favored for the future, but nothing short term, but it was discussed recently again as potential improvement for scaling.

nickvergessen avatar Feb 05 '24 18:02 nickvergessen