Non-blocking io webserver / framework for java

Does anyone know any node.js style webserver framework for java? I realized that having a non-blocking callback behavior when processing a web request would require deep support at the web server level. I'm interested in node.js, but when I have a web server that finishes saving data, I would like to use the static type system offered by Java. However, I want the scalability of non-blocking io.

+3
source share
5 answers

Grizzly may be what you are looking for.

Also, if you are interested in using the Servlet API, which also offers asynchronous support with 3.0 , then it might be useful to know that decent servletcontainers also support NIO (often just using Grizzly under covers), such as Apache Tomcat 7 and Oracle Glassfish 3 .

+2
source

, . , " NIO" , . , select() friend , , . , java.net, .

+1

Deft

  • . (C10k) (C500k)
  • Java NIO (java.nio java.nio.channels)
  • ( -)
+1

- ! (. http://www.playframework.com/). Java Scala. Netty (. http://netty.io/), - NIO (Non-blocking IO). Play ( Netty) Futures ( / -, ) Promises ( ) (. http://en.wikipedia.org/wiki/Futures_and_promises)

+1

I asked myself the same question, and instead of looking, as it should, I looked at how you can write a framework for deploying software components on a nio server, similar to how you can deploy servlets and ejbs to a Java EE container. I registered it at http://blog.maxant.co.uk/pebble/2011/05/22/1306092969466.html if that helps you.

0
source

Source: https://habr.com/ru/post/1776021/


All Articles