NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: tglomb on March 21, 2014, 02:53:59 AM

Title: file opening and WebHandler
Post by: tglomb on March 21, 2014, 02:53:59 AM
If I have a file access (TPS at the moment) in the WebHandler can this be a performance penalty ? If I understand correctly, with each request from a user the WebServer opens a new thread - the WebHandler. So every time a request is getting processed the file is opened and closed. Correct ?
Can this be a problem with lots of simultaneous/parallel requests ?
TIA and Ciao, Thomas
Title: Re: file opening and WebHandler
Post by: Bruce on March 24, 2014, 01:23:09 AM
Hi Thomas,

>> If I have a file access (TPS at the moment) in the WebHandler can this be a performance penalty?

all code is a performance penalty. The amount of performance lost depends on the code, where it is, what it does, and so on. The penalty may be acceptable, or it might not be acceptable - it all depends on the situation.

<<  If I understand correctly, with each request from a user the WebServer opens a new thread - the WebHandler. So every time a request is getting processed the file is opened and closed. Correct ?

yes - although it depends on where your code is, and if it opens the file or not.

>> Can this be a problem with lots of simultaneous/parallel requests ?

depends on what you consider to be a problem.

cheers
Bruce