drogonframework / drogonframework/drogon

permessage-deflate extenstion for websocket

Open
#1,568 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 12h
Merged PRs (30d)
15

Description

**Is your feature request related to a problem? Please describe.**
when using websocket for streams its bandwidth is critical and can be bottleneck

**Describe the solution you'd like**
permessage-deflate is a extension in websocket that compress messages and even all browsers support it right now.
in my tests implementing permessage-deflate in other languages can reduce message size by ~30% with 1-3% more cpu usage per websocket on server (on a Core i7-11700k)
permessage-deflate is optional and client/server can negotiate on it to enable this feature or not so this implementation not breaking old codes

**Additional context**
[https://www.rfc-editor.org/rfc/rfc7692](https://www.rfc-editor.org/rfc/rfc7692)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.