用于 Java 的非阻塞 io 网络服务器/框架 [英] Nonblocking io webserver/framework for java

查看:27
本文介绍了用于 Java 的非阻塞 io 网络服务器/框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道任何用于 Java 的 node.js 风格的 web 服务器框架?我意识到在处理 Web 请求时具有非阻塞回调行为需要 Web 服务器级别的深度支持.我对 node.js 感兴趣,但是当我有一个最终持久化数据的 Web 服务器时,我想利用 Java 提供的静态类型系统.但是,我想要非阻塞 io 的可扩展性.

Does anyone know of any node.js style webserver framework for java? I realized that having nonblocking callback behavior while handling a web request will require deep support at the webserver level. I am interested in node.js, but when I have a web server that ends up persisting data, I would like to take advantage of the static type system that Java offers. However, I want the scalability of non-blocking io.

推荐答案

Grizzly 可能就是你寻找.

此外,如果您有兴趣使用 Servlet API,它也提供 自 3.0 起的异步支持,那么很高兴知道像 Apache Tomcat 7Oracle Glassfish 3.

Further, if you're interested in using the Servlet API, which also offers asynchronous support since 3.0, then it may be good to know that decent servletcontainers supports NIO as well (often by just utilizing Grizzly under the covers) like Apache Tomcat 7 and Oracle Glassfish 3.

这篇关于用于 Java 的非阻塞 io 网络服务器/框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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