Comments (6)
I do not want to support permessage-deflate before, because it's easy to be implemented by the application layer and not all ws clients support it and the server could decide to not compress.
But since you have proposed it, we make it on the road map.
from nbio.
have implemented decompress for the server in a new branch:
9e4b46f
I'll go on to implement compress after some rest
from nbio.
from nbio.
I ran auto_bahn against it. There are a few failures to work through but good start.
Done with all the compression, and the newest Autobahn WebSocket Testsuite report:
https://lesismal.github.io/nbio/websocket
It cost 2 hours on my laptop, such a long run, my laptop has a fever
Please try it yourself and enjoy it
from nbio.
Thanks. I can't today but will check it out over the next few days. Next thing we need to do is a performance comparison between the most popular golang websocket apis. I can get this done over the next few days. We also need to track and increase code coverage.
from nbio.
Next thing we need to do is a performance comparison between the most popular golang websocket apis
we may focus on some points:
- the performance and memory reduction in high concurrency service
- not limited to a simple echo service, hard to explain, it's kind of about the cross-goroutine memory management in nbio, compared to std who use the same buffer reuse in the same goroutine for each connection, and the different frameworks' scheduling cost. for a low concurrency service, nbio runs no better than std, even worse than std.
from nbio.
Related Issues (20)
- Websocket server memory usage ~4x as high with TLS HOT 14
- WebSocket streaming API HOT 11
- Memory usage increases every day HOT 3
- How to actively close the user connection? HOT 4
- 我想问下nbio能够开启端口复用吗 HOT 3
- Panics when custom port number is specified for wss websocket connection! HOT 3
- 我想问一下,以后会做AIO吗?就随便问问,没别的意思 HOT 4
- Can I WriteMessage before OnMessage? HOT 6
- Please add context support HOT 115
- nbio实现网关的一些问题 HOT 9
- custom Logger HOT 43
- Does this library take an advantage of zero-copy upgrade in Websocket? HOT 25
- Reduce the number of calls to time.Now in setdeadline HOT 9
- WebSocket 服务器使用IOModMixed,client正常关闭,OnClose里的err不为nil HOT 36
- Using nbhttp for server-sent events HOT 7
- Use cases of MaxLoad and MaxBlockingOnline configurations HOT 14
- 请教几个参数的问题 HOT 6
- What happens when multiple goroutines send a message to single websocket connection? HOT 16
- 日志打印建议 HOT 3
- Question: writeBuffer HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbio.