Solved

General web service question - IIS 7

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

734 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