NetTalk Central

Author Topic: file opening and WebHandler  (Read 2687 times)

tglomb

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AObit Software
    • Email
file opening and WebHandler
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: file opening and WebHandler
« Reply #1 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