473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

cache and webfarm

I'm developing a web application that needs to support a webfarm scenario so
I've used a filecachedependency on a shared folder (for now, always in my
local machine) to clear cache on all application processes / server when I
update some data...
On some articles (like
http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone suggests
to use a webservice call on every server in the farm, this webservice simply
invalidate or update the cache.
My doubts are:
- is the filedependency on a shared folder (also used for filesession) a so
bad idea, can I have any problems using it?
- can the webservice method be more efficient?
- what happens if the servers with webservice are dual CPU (with 2 asp.net
process running)? Can be the cache invalidate on both with that method?
Thanks to anyone can give me an explanation, I'm not so expert in webfarm
scenario... :)
Fabio R.
Nov 19 '05 #1
3 1831
couple issues:

1) access to shared folder - all the asp.net accounts must be a domain
account with access to the share. use app pools on 2003 for this.

2) file monitoring on a network share uses non-paged pool, and you can run
out. see:

http://support.microsoft.com/default...b;en-us;221790
-- bruce (sqlwork.com)

"Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
I'm developing a web application that needs to support a webfarm scenario
so I've used a filecachedependency on a shared folder (for now, always in
my local machine) to clear cache on all application processes / server
when I update some data...
On some articles (like
http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone suggests
to use a webservice call on every server in the farm, this webservice
simply invalidate or update the cache.
My doubts are:
- is the filedependency on a shared folder (also used for filesession) a
so bad idea, can I have any problems using it?
- can the webservice method be more efficient?
- what happens if the servers with webservice are dual CPU (with 2 asp.net
process running)? Can be the cache invalidate on both with that method?
Thanks to anyone can give me an explanation, I'm not so expert in webfarm
scenario... :)
Fabio R.

Nov 19 '05 #2
About the second point:
tha app can get into trouble if more than 125 users try to read/write on the
UNC share at the same time or if IIS needs to monitor (to notify changes)
more than 125 files?
Thanks for your reply,
Fabio

"Bruce Barker" <br******************@safeco.com> ha scritto nel messaggio
news:uw*************@TK2MSFTNGP15.phx.gbl...
couple issues:

1) access to shared folder - all the asp.net accounts must be a domain
account with access to the share. use app pools on 2003 for this.

2) file monitoring on a network share uses non-paged pool, and you can run
out. see:

http://support.microsoft.com/default...b;en-us;221790
-- bruce (sqlwork.com)

"Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
I'm developing a web application that needs to support a webfarm scenario
so I've used a filecachedependency on a shared folder (for now, always in
my local machine) to clear cache on all application processes / server
when I update some data...
On some articles (like
http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone
suggests to use a webservice call on every server in the farm, this
webservice simply invalidate or update the cache.
My doubts are:
- is the filedependency on a shared folder (also used for filesession) a
so bad idea, can I have any problems using it?
- can the webservice method be more efficient?
- what happens if the servers with webservice are dual CPU (with 2
asp.net process running)? Can be the cache invalidate on both with that
method?
Thanks to anyone can give me an explanation, I'm not so expert in webfarm
scenario... :)
Fabio R.


Nov 19 '05 #3
Look into ScaleOut StateServer as a way to manage this.
Not only does it handle web farm session management
quite well, it also provides a web farm cache management
api.

Read more and download an ASP.NET code sample:

http://www.eggheadcafe.com/articles/scaleout_server.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net

"Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
About the second point:
tha app can get into trouble if more than 125 users try to read/write on
the UNC share at the same time or if IIS needs to monitor (to notify
changes) more than 125 files?
Thanks for your reply,
Fabio

"Bruce Barker" <br******************@safeco.com> ha scritto nel messaggio
news:uw*************@TK2MSFTNGP15.phx.gbl...
couple issues:

1) access to shared folder - all the asp.net accounts must be a domain
account with access to the share. use app pools on 2003 for this.

2) file monitoring on a network share uses non-paged pool, and you can
run out. see:

http://support.microsoft.com/default...b;en-us;221790
-- bruce (sqlwork.com)

"Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
I'm developing a web application that needs to support a webfarm
scenario so I've used a filecachedependency on a shared folder (for now,
always in my local machine) to clear cache on all application processes
/ server when I update some data...
On some articles (like
http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone
suggests to use a webservice call on every server in the farm, this
webservice simply invalidate or update the cache.
My doubts are:
- is the filedependency on a shared folder (also used for filesession) a
so bad idea, can I have any problems using it?
- can the webservice method be more efficient?
- what happens if the servers with webservice are dual CPU (with 2
asp.net process running)? Can be the cache invalidate on both with that
method?
Thanks to anyone can give me an explanation, I'm not so expert in
webfarm scenario... :)
Fabio R.



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christopher D. Wiederspan | last post by:
We are getting ready to move an ASP.NET application off of a single development machine and onto a "webfarm". Basically our webfarm is a bunch of identical servers with the load-balancing provided...
1
by: Felix Planjer | last post by:
Hi group, We're developing an application that may be migrated to a web farm in the future, but we want to be prepared for the move, hence the following question: Using the Caching...
0
by: Komil | last post by:
Hey Guys, We are using a webfarm environment to host our current site. There are three machine involved in this webfarm. I have copied the same machinekey information that was generated from...
6
by: Prabha | last post by:
hi i am building an webfarm application. Can anyone tell me what is the best method of passing values across page? Does using stateserver cause any issues?
1
by: Prabha | last post by:
Hi, My appliaction is hosted in webfarm, how to upload a file to all the server in webfarm. Please help me, its very urgent. Millions of advance thanx. Regards
10
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi Everybody, I'm trying to save some items in the asp.net cache, but they are removed from the cache WAY before they are supposed to (at least as I understand the documentation). I add the...
1
by: GNoter | last post by:
Scenario: I've a WebFarm with 2 web servers which are NLBs (network load balanced). Web1 and Web2; they are not part of a domain. I have a third server, Server3, which is part of a domain and on...
3
by: =?Utf-8?B?c29ubnk=?= | last post by:
Does the Cache object work in a webfarm with SessionState being? Is there a better way to store application wide data? thx...sonny
12
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
Is there any doc to config webfarm for asp.net 3.5 app? I have found below article: PRB: Session State Is Lost in Web Farm If You Use SqlServer or StateServer Session Mode...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.