-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket 和 http(s) 代理性能分析 #78
Comments
请求方式分析用例:
|
看来 socket 这种方式还是只适合小数据的传输, 比如聊天室啥的. 对于这种大数据的传输, 还是不太适合啊. |
@leoner 太不公平了,你要和 http 对比就要用 net 库呀。 var http = require('http')
var net = require('net') |
因为不是简单的传输数据, 需要对传输数据识别,分组啥的, 如果用 net 的话, 还是需要做好多处理, 所以首先用已有的模块来测试下. json-over-tcp 看来已经是很精简了. 下一步在看看是否还有优化的余地. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
从两个维度进行分析
请求方式
socket 模块的选择
如果没有意外,还是倾向于用 socket.io
The text was updated successfully, but these errors were encountered: