JohnXLivingston / peertube-plugin-livechat

GNU Affero General Public License v3.0
86 stars 26 forks source link

Improve Websocket proxy performance #296

Open JohnXLivingston opened 5 months ago

JohnXLivingston commented 5 months ago

To proxify Websocket and BOSH request to the Prosody server, Peertube uses (http-proxy). This package has a lot of unecessary options and code.

We could maybe improve performances by writing the proxy code directly in the plugin.

See this test run: the CPU load on Peertube can raise to 25% in this test scenario.

JohnXLivingston commented 5 months ago

Looking at the http-proxy, not sure it is really possible to optimize. So low priority for this issue.