matrix-org / matrix-org/matrix-spec

Apply compression to JSON data for decrease C2S and S2S traffic

Open
#417 3 comments 1 reaction 0 assignees View on GitHub
A-Client-Server A-S2S enhancement
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

Seems at now Matrix messages in JSON format sent without compression. Will be good to apply compression to them, because JSON data have very good compression level: https://starbeamrainbowlabs.com/blog/article.php?article=posts/275-Compression-Comparison.html
So applying compression will decrease S2S and C2S traffic more than 2x times, especially considering that `m.message` contain message text in 2 formats (plain + html).

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Matrix specification sections covering client-server and server-server traffic, since the issue does not name specific files, tests, or entry points. Determine how compression would be negotiated and applied to JSON messages, then document the protocol changes and interoperability expectations needed for the work to be complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.