Skip to content

Ensure "get messages" endpoint will not be overloaded #46

Description

@segeeslice

Problem

The front-end calls the "Get messages" endpoint frequently to ensure it is up-to-date. However, calling "Get messages" so often may cause unnecessary slowness in the future.

Say the user has 10,000 messages, then we would load all 10,000 each second, possibly overworking the server

Possible solutions

  • Only returning most recent X messages at a time and lazy-loading as we scroll (industry-standard, but difficult)
  • Limiting the number of total messages two users can have (easy, but could restrict user experience)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlow priorityNice to have eventually, but not neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions