Solved

General web service question - IIS 7

Posted on 2014-01-08
4
194 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 18

Accepted Solution

by:
zc2 earned 250 total points
Comment Utility
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 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now