drogonframework / drogonframework/drogon
permessage-deflate extenstion for websocket
- 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
Assessment
This issue has not been assessed yet.