网络科技

    今日:454| 主题:246205
收藏本版
互联网、科技极客的综合动态。

[其他] uWebSockets 0.10.0,可扩展的WebSocket服务器库

[复制链接]
乜許、悲傷 发表于 2016-10-6 06:05:57
161 4

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

uWebSockets 0.10.0,可扩展的WebSocket服务器库-1 (yesterday,require,服务器,memory,接口)
   uWebSockets 0.10.0 发布了,v0.10.0是一个完全重写的库,包括性能提升和bug修复。 uWebSockets,是一款高度可拓展的最轻量级、效率最高的WebSocket服务器库之一。它具有易于使用的,完全异步面向对象的接口和与其他竞品对比扩展到数百万连接只使用一小部分内存的特点。 详细更新如下:
  性能和可伸缩性优化:

  
       
  • Node.js:
       
         
    •   Greatly improved memory scalability. One million connections require 1.3 GB of user space memory - 65% of what v0.9.0 required and 8% of what ws 1.1.0 requires.
         
    •   Slight throughput performance gain (up to 27x faster than ws 1.1.0 , up from 24x with v0.9.0).
         
    • New optional (subject-to-change) low-level C-like interface exposed as require('uws').native - for those who don't mind trading a bit of productivity for improved efficiency.
         
       
  • Node.js and/or C++
       
         
    • Throughput has been improved ~20% despite the increased level of abstraction (up to 5 million messages echoed per second using the C++ interface and one Intel i5 CPU core).
         
    • Permessage-deflate requires way less memory per connection (1 byte) due to shared z_stream by default.
         
      
  新特性:

  
       
  • Node.js and C++
       
         
    •   Client support - thanks to @jimmyt857 for work on the early prototype!
         
    • Basic subprotocol support (it will simply accept any subprotocol).
         
       
  • C++
       
         
    • Greatly improved code quality.
         
    • Plenty of automatic test cases have been added, all passing cleanly under Valgrind.
         
    • Simplified threading, transfer connections between CPU cores "dynamically" during the connection lifetime.
         
    • SO_REUSEPORT support (goes well together with connection transferring).
         
    • Path routing (GET /whateverPath).
         
    • Concept of groups, one group share callbacks and broadcast scope.
         
    • New interface allows more complex set-ups (one group can listen to many ports, be it SSL or non-SSL or both)
         
      
  Bug 修复:

  
       
  • Adds proper bounds checking to UTF-8 check.
       
  • Fixes a potential bug with short writes over SSL connections.
       
  • Proper SSL renegotiation support (SSL_read might need to write, etc).
       
  • IPv6 & IPv4 support.
      
  发行说明:

  
       
  •   https://github.com/uWebSockets/uWebSockets/releases/tag/v0.10.0
      
  下载地址:
友荐云推荐




上一篇:Google Opinion Rewards gets a new icon and a blue color scheme to match
下一篇:These websites defined the early 2000s — here's where they are now
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

我只是路過的 发表于 2016-10-14 18:39:21
明明白白我的心,楼主赏我个沙发!
回复 支持 反对

使用道具 举报

超喜欢 发表于 2016-10-24 01:52:23
屌丝和绿茶婊太多了,还是顶乜許、悲傷的帖子更有意义
回复 支持 反对

使用道具 举报

jrfe3rQq 发表于 2016-10-24 07:53:57
楼主,你说,你几个意思?
回复 支持 反对

使用道具 举报

15sshaaj 发表于 2016-11-16 22:36:47
顶起!求沙发位
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表