Skip to content

optimisations  #89

Description

@gpicavet

Hello,

I think the app performance could benefit from stopping sending useless requests, and it would be done at low cost on client side :

  • only send read request when there's a notification (returning notifications by room along with the total amount), and only returns the last messages
  • stop sending xhr requests when tab is in background (using visible api) and refresh immediately when restoring tab. But it could be interesting to keep notification request as well

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions