smart-socket 1.4.1 发布,Proactor 与 Reactor 的组合通信

smart-socket是一款国产开源的Java AIO框架,追求代码量、性能、稳定性、接口设计各方面都达到极致。如果smart-socket对您有一丝帮助,请Star一下我们的项目并持续关注;如果您对smart-socket并不满意,那请多一些耐心,smart-socket一直在努力变得更好。

更新内容

  1. 优化线程模型。采用proactor为主,reactor为辅的线程模型,性能得到显著提升。
  2. bugfix:修复AioQuickServer执行shutdown后Worker线程没有停止的bug。(感谢richard.wu的反馈)
  3. bugfix:修复TLS/SSL关闭连接时状态处理异常。
  4. 移除AioQuickServer中的setThreadNum方法,新增setWorkerThreadNum、setBossThreadNum、setBossShareToWorkerThreadNum方法。

Maven地址

<!-- https://mvnrepository.com/artifact/org.smartboot.socket/aio-core -->
<dependency>
    <groupId>org.smartboot.socket</groupId>
    <artifactId>aio-core</artifactId>
    <version>1.4.1</version>
</dependency>

性能报告

在最新一轮的tfb测试中,smart-socket取得了32名的佳绩,这次评测终于和netty做邻居了:

https://www.techempower.com/benchmarks/#section=test&runid=2681edff-2c12-42fe-a5a3-1597b89d36ef&hw=ph&test=plaintext

福利

最后,奉上一篇smart-socket 1.4的技术内幕《smart-socket内存管理:首次适应算法》,高性能是有原因的,喜欢这个项目的请给我们加一颗星!

猜你喜欢

转载自www.oschina.net/news/106645/smart-socket-1-4-1-released