WCF Service Deployment

If I dilute the WCF service, will this interrupt the service? I am deploying to IIS, and my deployment is copying through dlls, web.config, svc, etc. Manually using a Windows browser.

So, I copy files, what happens after that? Is the application pool restarting? Do you need to recompile something (i.e. slow it down)?

The service starts without session state, so if the application pool is being processed, I don't care until the requests are interrupted.

+4
source share
3 answers

If the service was used and the old DLL files were loaded, you will need to recycle the application pool before the new dll files are used - until the old dll libraries are stored in memory.

While the re-compilation resulting from the reuse of the application pool fails, the first caller to your service will experience a slight delay, while the necessary necessary DLL files will be loaded into memory.

You can easily prevent this first call delay by calling your service right after recompiling. Thus, the only way the user will experience a delay is to make a service call at the same time as the deployment (and beat you before the first call), but the delay will be minimal.

+3
source

From my experience with ASP.Net, some changes to the file are tracked in the application virtual directory. I believe that the application restarts whenever any of the monitored files / directories change. From ASP.Net experience, modifying the web.config file and the files in the bin directory will cause the \ restart application to reload. I think the same thing should happen with WCF. You need to do POC to check this out.

+1
source

No, it should not, but the correct way to deploy the service is to build it in release mode, I offer this article in more detail: http://blah.winsmarts.com/2008-4-Host_a_WCF_Service_in_IIS_7_-and-amp;_Windows_2008_-_The_right_way. aspx

-1
source

Source: https://habr.com/ru/post/1346853/


All Articles