未加星标

uWebSockets 0.10.0,可扩展的WebSocket服务器库

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二04 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

uWebSockets 0.10.0,可扩展的WebSocket服务器库

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

下载地址:

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

主题: WebSocket服务器C++Node.jsCPUUTIPv6IPv4
分页:12
转载请注明
本文标题:uWebSockets 0.10.0,可扩展的WebSocket服务器库
本站链接:http://www.codesec.net/view/479761.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(64)