简体   繁体   English

JBOSSAS和Netty之间的区别

[英]Difference between JBOSSAS and Netty

Maybe this is a too newbie question, but I don't really understand the differente bs JSBOSS Application Server (now named WildFly) and Netty (or JBOSS Netty). 也许这是一个太新手的问题,但我真的不明白不同的bs JSBOSS Application Server(现在名为WildFly)和Netty(或JBOSS Netty)。

Are they both web servers? 它们都是Web服务器吗? Are they frameworks? 他们是框架吗?

Thanks! 谢谢!

Wildfly is a full blown application server and Netty is "just" a network framework. Wildfly是一个完整的应用程序服务器,Netty“只是”一个网络框架。 So those are completely different in all means. 所以那些方式完全不同。

Wildfly is a Java Enterprise Edition Server, meaning it implements the Java EE specification . Wildfly是Java Enterprise Edition Server,意味着它实现了Java EE规范

When you use Wildfly the jars provided by JBOSS should include implementations of all of the APIs listed in the specification above, ie javax.servlet for servicing HTTP requests, or javax.persistence (provided by Hibernate under the covers) for saving data to a database. 当您使用Wildfly时,JBOSS提供的jar应包含上述规范中列出的所有API的实现,即用于服务HTTP请求的javax.servlet,或用于将数据保存到数据库的javax.persistence(由Hibernate提供) 。

Netty is not a Java EE Server, it is a bare-bones framework for servicing any type of network request. Netty不是Java EE服务器,它是用于服务任何类型的网络请求的简单框架。 It does not offer implementations of any of the API's listed in the Java EE Spec. 它不提供Java EE规范中列出的任何API的实现。

Netty provides different 'codecs' to service different types of common network requests like Http, SPDY, etc. Equally, if you have a custom network protocol you can write your own codec to handle it. Netty提供不同的“编解码器”来服务不同类型的常见网络请求,如Http,SPDY等。同样,如果您有自定义网络协议,您可以编写自己的编解码器来处理它。

Netty does not, for example, offer any support for helping you write records to a database. 例如,Netty不会为帮助您将记录写入数据库提供任何支持。

There are many other technical differences. 还有许多其他技术差异。 Netty is effectively event-looped rather than thread-per-request, but the above is the key difference you're probably looking for. Netty实际上是事件循环而不是每个请求的线程,但上面是您可能正在寻找的关键区别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM