Netty 5.0為啥被舍棄?

2023-03-10 10:22 更新

  • 4.x版本是當前官方推薦,4.x版本目前一直在維護中,值得稱贊!    
  • 3.x版本是比較舊的版本,跟4.x版本相比變化比較大,特別是API。
  • 5.x是被舍棄的版本,官方不再支持!

    Netty 5.0 以前是發(fā)布alpha版。聽說 Netty 5.0不繼續(xù)開發(fā)了。

    為啥呢?看看GitHub上怎么作者怎么回復的吧?

    The major change of using a ForkJoinPool increases complexity and 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增加了復雜性,并且沒有顯示出明顯的性能優(yōu)勢。同時保持所有的分支同步是相當多的工作,沒有必要。

詳情請看github地址:

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


以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號