简体   繁体   中英

Asynchronous File Upload Servlet

Is it recommended to use asynchronous or NIO servlet for file upload? If so, a good sample code to start will do a great help for me.

I'd like to know which version of Tomcat supports Async / NIO servlet too.

No...

...use the standard blocking IO stuff.

NIO does not automagically translate to 'faster' than old school blocking IO. In fact, many people have reported degraded performance with asynchronous NIO implementations for years, on top of the code being considerably more complex to code, understand, maintain and debug.

If that doesn't scare you off, remember two important engineering concepts:

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