Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

General web service question - IIS 7

Posted on 2014-01-08
4
Medium Priority
?
215 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
4 Comments
 
LVL 19

Accepted Solution

by:
zc2 earned 1000 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 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
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.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

886 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