Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7421135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:21:23+00:00 2026-05-29T08:21:23+00:00

In apache HTTPComponent document there is a statement: Contrary to the popular belief, the

  • 0

In apache HTTPComponent document there is a statement:

Contrary to the popular belief, the performance of NIO in terms of raw data throughput is significantly lower than that of blocking I/O.”

Is that true? Can someone explain this in more details? And what is a typical use case where

request / response handling needs to be decoupled

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:21:24+00:00Added an answer on May 29, 2026 at 8:21 am

    Non blocking IO should be used when you can handle the request, dispatch it for processing on some other execution context (different thread, RPC call to another server, some other async mechanism) and release the web-server’s thread to handle more incoming requests. When the processing of the response will be completed, a response handling thread will be invoked, and it will send the response to the client.

    I would recommend reading netty documentation for better understanding of the concept.

    As for higher throughput: When your server sends/recieves large amounts of data, all those context switches, and passing data between threads, can really hurt overall performance. Think of it like this: you receive a large request (PUT request with a large file). All you need to do is to save it to disk, and return OK. Starting to toss it between threads could result in few more mem-copy operations that would have been needed in case you’ve just threw it to disk in the same thread. And handling this operation in async manner would not improve performance: though you could have released the request handling thread back to web-server’s thread pool and let it process other requests, your main performance bottleneck is your disk IO, and in this case – trying to save more files simultaneously, would only make things slower.

    I hope I was clear enough. Please feel free to ask more questions in comments if you need more explanations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apache Pig can load data from Hadoop sequence files using the PiggyBank SequenceFileLoader :
Using Apache POI to generate a document and i'm having a small problem with
are there any library similar to apache httpcomponents for c/c++ language? Thanks in advance,
How can I do multipart file uploads using the Apache Camel HTTP component ?
Apache just fails to start with NO error message when we try to reboot
Apache XMLBeans can be used to generate Java classes and interfaces from XML Schema
Apache URL rewrite logic can be written either in conf or .htaccess file. Which
Apache on a windows machine running as SYSTEM. What user and password should be
Using Apache's commons-httpclient for Java, what's the best way to add query parameters to
On Apache/PHP sites if I want to put a senstive file within my website

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.