Solved

General web service question - IIS 7

Posted on 2014-01-08
4
211 Views
Last Modified: 2014-02-16
Hello,

I need a little advice regarding web services.

I am going to as a developer to write me a web service that runs a report and returns a PDF.  The process involved in running the report will take approximately 5 seconds.  There is nothing I can do about this.  It has to be generated at the moment the caller asks for it.

Maybe this is a rather stupid question but how does IIS 7 handle multiple calls to a web service.  Does a new thread get created each time a call is made… so if 5 calls are made simultaneously then 5 threads are created?

I am just wondering about performance because if there is a queue then in the scenario above the user could wait 25 seconds for the report.  However if each request results in a separate thread then the reports would be ready all at the same time after about 5 seconds.

Thanks.
0
Comment
Question by:soozh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 18

Accepted Solution

by:
zc2 earned 250 total points
ID: 39795768
IIS does not start a new thread for each request. To save precious time on a heave thread creation procedure it uses an existed previously created thread from so-called 'thread pool'.
Yes, 5 requests made simultaneously will be executed in 5 different threads at the same time.
0
 
LVL 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 39795926
You'll have no problem -- all web servers work the same way, from the perspective of the client request.  Just be careful about serializing resources (data base or file access) in your code.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question