Netty 5.0为啥被舍弃?原因竟然是...

Netty当前的版本:

User guide for 4.x - RECOMMENDED VERSION

User guide for 3.x

User guide for 5.x - ABANDONED VERSION - NOT SUPPORTED

    4.x版本是当前官方推荐,4.x版本目前一直在维护中,值得称赞!    

    3.x版本是比较旧的版本,跟4.x版本相比变化比较大,特别是API。

    5.x是被舍弃的版本,官方不再支持!

    Netty 5.0以前是发布alpha版。听到你Netty 5.0不继续开发了,这个是相当大的吃惊,目前也有一部分书籍是基于Netty5来讲的,所以给那些初学者也是很郁闷的赶脚。

    为啥呢?看看GitHub上怎么作者怎么回复的吧?

The major change of using aForkJoinPool increases complexityand has not demonstrated a clear performance benefit. Also keeping all the branches in sync is quite some work without a real need for it as there is nothin in current master which I think justifies a new major release.

Things that we should investigate to prepare for this change:

    Deprecate exceptionCaught in ChannelHandler, only expose it in ChannelInboundHandler Expose EventExecutorChooser from MultithreadEventExecutorGroup to allow the user more flexibility to choose next EventLoop Add another method to be able to send user events both ways in the pipeline. (#4378)

主要意思:

使用ForkJoinPool增加了复杂性,并且没有显示出明显的性能优势。同时保持所有的分支同步是相当多的工作,没有必要。

详情请看github地址:

        https://github.com/netty/netty/issues/4466

    目前推荐使用的版本是Netty 4.0 or 4.1(我推荐) 。加油,Nettyer 。

                                            长按二维码识别,一键关注干货

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容