c# - Can I have a section of App_Code which compiles separately from the rest of the folder? -


we have website huge amount of cached objects stored in static variables within app_code. whenever push app_code change our production webservers recycles iis pool , flushes cache. not flush cache when push out changes .aspx , .aspx.cs files.

i need have bunch of classes updated several times day able referenced in app_code. either section of app_code can update several times day without cycling iis , flushing cache, or ability reference classes outside of app_code within app_code.

is there solution fits problem?

updates app_code or /bin/ recycle application pools believe. if you're saying have deployment scenario .aspx.cs file updates not recycle application pool, , if you're able refer page type itself, perhaps can move code .aspx.cs files prevent recycling happening. that's may ugly choice though.

one suggestion revise design reduce number of source code updates required on daily basis. perhaps use xml or database storage, , design application little more generic, , less prone binary updates.

or perhaps partition application several smaller virtual applications. level of effort higher this, in case if application more compartmentalized, won't have recycle entire app each , every deployment. you'd have recycle modules impacted deployment.

another suggestion might setup clustered server architecture. schedule deployments apply 1 cluster node, keeping other active while scheduled update occurring, , roll out updates second node once first node update done app pool recycled.

another suggestion change deployment times less off-peak times, if that's feasible.

are frequent updates happening because there lot of development changes happening?


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -