Skip to content

Reduce size of capabilities response with translations enabled #10074

@fancycode

Description

@fancycode

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

If translations are enabled, the capabilities of Talk contain a huge amount of entries in the translations key. Here it was about 500 Kbytes of JSON. Most of the data in there is redundant (fromLabel / toLabel), so a smaller representation would be rather easy. Also if multiple apps will need the same data in the future, the capabilities will grow a lot again.

Compressing the response of course is easy (in my example the 500 Kbytes go down to ~24 KBytes), but services caching the capabilities of multiple servers (like the HPB or the SIP bridge) will require a lot of memory to do so.

It would be great if the size of the capabilities could be reduced for the case where translations are enabled. Maybe the list of possible translation sources / targets could be moved to a separate endpoint, so it's only transmitted if necessary.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions