不同的Netty版本及其用途 [英] Different Netty versions and their purposes

查看:517
本文介绍了不同的Netty版本及其用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在使用Netty一段时间,但永远无法解决这个问题。可以下载四个不同的版本。其中三个正在积极开发。

I am using Netty for a while now and could never solve this question. One can download four different versions. Three of them are actively getting developed.


3.x

3.x

4.0。 x

4.1.x

5.x

据我所知,3.x适用于JRE 1.5,JRE的其他所有内容都大于此。我使用的是4.0.28,因为它是稳定版和推荐版。但是其他版本的差异或目标究竟是什么?

As far as I understand 3.x is for JRE 1.5 and everything else for JREs greater than that. I am using 4.0.28 because it is the stable and recommended version. But what exactly is the difference or goal of the other versions?

我在他们的网站上找不到任何关于此的信息。

I could not find any information about this on their website.

编辑:我看到近距离投票,所以我想澄清一下:我不是在找一个向我列出版本代码中所有差异的人。但是4.1.x和5.x版本必须有某种目标或目的。

I see close votes coming so I'd like to clarify: I'm not looking for someone who lists me all the differences in the code of the versions. But there has to be some sort of objective or purpose for the 4.1.x and 5.x versions.

推荐答案

3.x已弃用。我们维护它是因为一些用户仍然广泛使用它。

3.x is deprecated. We maintain it because some users still use it widely.

4.0是当前的稳定版本。如有疑问,请使用此版本。

4.0 is the current stable version. When in doubt, use this version.

4.1是4.0的向后兼容版本。它增加了一些很酷的新功能,如HTTP / 2和异步DNS解析器。因此,4.1是您的应用程序已经在4.0之上运行并且您想要尝试新功能时可能要尝试的版本。

4.1 is a backward compatible version of 4.0. It adds some cool new features like HTTP/2 and asynchronous DNS resolver. So, 4.1 is the version you might want to try when your application already runs on top of 4.0 and you wanna try the new features.

5.0是向后不兼容的版本。但是,它不像我们为4.0 vs 3.x所做的重写。但是,我们确实修复了一些API设计缺陷。您需要对代码进行一些更改以使Netty 4应用程序在Netty 5上运行,但这不像将Netty 3应用程序移植到Netty 4应用程序。最终,将弃用4.x,5.0将是稳定版本。

5.0 is a backward incompatible version. However, it's not like a rewrite we did for 4.0 vs 3.x. However, we did fix some API design flaws. You'll need to make some changes in your code to make your Netty 4 application run on Netty 5, but it's not like porting Netty 3 application to Netty 4 application. Eventually, 4.x will be deprecated and 5.0 will be a stable version.

这篇关于不同的Netty版本及其用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆