简体   繁体   English

Grizzly是一个Web服务器(基于NIO)还是一个框架

[英]Is Grizzly a web server (NIO based) or a framework

From the official documentation it seems to me that Grizzly is a NIO based framework using which we can build scalable web-servers. 从官方文档中可以看出,Grizzly是一个基于NIO的框架,使用它我们可以构建可扩展的Web服务器。 However, I also realize that Grizzly is used as a HTTP Connector (front-end) in Glassfish (v3 to be specific). 但是,我也意识到Grizzly被用作Glassfish中的HTTP连接器(前端)(v3具体)。

If Glassfish is using it as a connector, is it custom written using the exposed API's or is there a out of box reference implementation. 如果Glassfish使用它作为连接器,是使用公开的API自定义编写还是有一个开箱即用的参考实现。 Can I also run Grizzly as a standalone webserver? 我还可以将Grizzly作为独立的Web服务器运行吗?

The Glassfish- Grizzly integration documentation is pretty limited on this. Glassfish-Grizzly集成文档在此方面非常有限。 Also, if there is a link which explains be diagrammatically the architecture of how Grizzly fit in to the Glassfish architecture (message flow) please share. 此外,如果有一个链接以图解方式解释Grizzly如何适应Glassfish架构(消息流)的架构,请分享。

The project Grizzly is NIO framework with an HTTP server module [1] and you don't need Glassfish to run Grizzly HTTP server. 项目Grizzly是带有HTTP服务器模块的NIO框架[1],您不需要Glassfish来运行Grizzly HTTP服务器。

[1] https://grizzly.java.net/httpserverframework.html [1] https://grizzly.java.net/httpserverframework.html

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

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