Last post Jul 20, 2017 08:28 PM by bruce (sqlwork.com)
Jul 19, 2017 04:54 PM|chazizzle|LINK
Will a Web API, production always run on the same process id (PID)?
Jul 19, 2017 07:32 PM|PatriceSc|LINK
You mean for a single request or for all requests (with a web garden ? even if the application pool is recycled etc...). In short it is likely "most often" true and might change depending on external conditions.
I would really avoid to have a design that depends on that assumption even if it is "most often" true. I would suggest to directly discuss your actual goal or concern...
Jul 20, 2017 08:28 PM|bruce (sqlwork.com)|LINK
the pid will change anytime the app domain is shutdown and restarted. if a web garden is used, then each app domain has a different PID. if asp.net core, anytime the application exits and is restarted.