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 6648707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:41:13+00:00 2026-05-26T00:41:13+00:00

My .Net and Java application needs to make many simultaneous requests to a web

  • 0

My .Net and Java application needs to make many simultaneous requests to a web service which takes a notable length of time to reply. Consequently there may be thousands of outstanding HTTP requests at any one time. To implement this I could have a single thread generate many asynchronous HTTP requests and handle the responses but I want to understand any alternatives which allow synchronous HTTP requests to be made without requiring thousands of threads to be used because of the associated resource cost. Any solution must avoid threads being blocked waiting for HTTP responses.

My question has two parts:

1) Can Threadpools be used to do this? I know I can queue my jobs in the threadpool queue and the threadpool will process them as and when it is able to but can the threadpool worker threads avoid being blocked waiting for the http response? Can they go and process other jobs while they wait?

2) Is there some other way I can achieve this while retaining the simplicity of the HTTP synchronous API call.

Regards

  • 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-26T00:41:13+00:00Added an answer on May 26, 2026 at 12:41 am

    Can Threadpools be used to do this?

    By themselves, no.

    Is there some other way I can achieve this while retaining the simplicity of the HTTP synchronous API call.

    Are you talking about the client side HTTP call API? If so, there is a way to do this, by using an asynchronous server-side implementation.

    • The Servlet 3.0 specification supports asynchronous request processing: read this Javaworld article.
    • Read the answers to Fast NIO, asynchronous HTTP Server for Java .
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In ASP.NET, there is web.config which can hold application-wide settings. Is there a corresponding
I have a third party .NET Assembly and a large Java application. I need
I'm firing off a Java application from inside of a C# .NET console application.
I'm wondering if a Java library can be called from a VB.net application. (A
How can I host a ( .Net, Java, VB6, MFC, etc ) application in
I have made a small application in Java and I would like to make
I need to make a C# application compatible with a Java application. The Java
We're planning to build a web application that needs to be highly secure because
We have a .NET application that needs to pass some data over to a
I am calling Java process from .NET application and I need to redirect console

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.