简体   繁体   中英

Event driven web applications in Java?

Is it correct to assume that event driven web applications are currently not practical in Java, or is there a framework or techniques that make this practical in java.

It seems to me that it is not possible, but maybe I am missing something.

  • JDBC drivers (and JDBC itself) assume thread based/blocking interactions.
  • Jetty/Tomcat and other app servers assume Servlets block until the results are ready.

I know Cassandra has "execAsync()" modes, which is promising, but over all it seems like an uphill (impractical) proposition.

This question is very similar to: Nonblocking io webserver/framework for java

Some options are:

These solutions are based off the NIO functionality add in Java 1.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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