Skip to content
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

OF-2530: Optimize MUC Message History cache usage #2134

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 19, 2022

  1. OF-2530: Optimize MUC Message History cache usage

    When reading or writing cached MUC messages, the entire collection of messages is serialized between cluster nodes. This adds an unacceptable amount of overhead, for every message that is added.
    
    In this commit, the singular cached entity (a list of messages), is separated into two parts:
    - A cached entity that represents a list of message references per chatroom
    - messages, by reference
    
    The purpose of this is to optimize the scenario of  adding a message (which is expected to happen more frequently than reading the history). By having to update only a list of references, instead of a list of actual objects, the amount of data that is to be operated on is reduced significantly.
    guusdk committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    66dfe46 View commit details
    Browse the repository at this point in the history