Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Refreshing the cache in web farming environment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harsh Trivedi - 25 Mar 2008 08:11 GMT
I have some confusion over refreshing the cache in web farming
environment.

We have two sites: 1) Admin site 2) Client Site

We are maintaining many things in cache. Out of which one is say for
example for 'Top-5 Item' Control we are maintaining.

When admin site updates the price of any item from Top-5 Item Control,
it should be reflected immedietly in Client Site.

Now, my Admin site address is, http://sitenameadmin.com/ and my Client
site name is http://Sitename.com. Both are configured separatly in the
IIS, as two web sites.

Earlier, what I have done is...I have made one web service page at
client site. So when admin updates anything from Top-5 item control,
it will call the web service of Client site, and pass the CacheID, as
input parameter. Client site web service is delete that cache, and
will refill it.

It all works OK till this.

Now the problem scenario arise...Client has now asked us to deploy the
client site (only client site) in web farming environment.
He will create four server, on which we need to deploy our
application. In the above scenario, I feared that the solution will
not
going to work. Because, if admin site calls web method it is not
confirmed that cache from all web server will be refreshed.

The URL of the site will be http://Sitename.com, and network load
balancer will transfer the request to any one of server behind the
farm.

This is the detail senario, of my problem.

I am confuse on how to call diffrent servers in a farm one by one, or
how to add the address in the web.config file.
Michael Nemtsev [MVP] - 25 Mar 2008 12:31 GMT
Hello Harsh,

I'd consider using the Cache with SQL based dependencies (SQL server should
be a part of farm)

google to find samples or see MSDN

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour 

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

HT> I have some confusion over refreshing the cache in web farming
HT> environment.
HT>
HT> We have two sites: 1) Admin site 2) Client Site
HT>
HT> We are maintaining many things in cache. Out of which one is say for
HT> example for 'Top-5 Item' Control we are maintaining.
HT>
HT> When admin site updates the price of any item from Top-5 Item
HT> Control, it should be reflected immedietly in Client Site.
HT>
HT> Now, my Admin site address is, http://sitenameadmin.com/ and my
HT> Client site name is http://Sitename.com. Both are configured
HT> separatly in the IIS, as two web sites.
HT>
HT> Earlier, what I have done is...I have made one web service page at
HT> client site. So when admin updates anything from Top-5 item control,
HT> it will call the web service of Client site, and pass the CacheID,
HT> as input parameter. Client site web service is delete that cache,
HT> and will refill it.
HT>
HT> It all works OK till this.
HT>
HT> Now the problem scenario arise...Client has now asked us to deploy
HT> the
HT> client site (only client site) in web farming environment.
HT> He will create four server, on which we need to deploy our
HT> application. In the above scenario, I feared that the solution will
HT> not
HT> going to work. Because, if admin site calls web method it is not
HT> confirmed that cache from all web server will be refreshed.
HT> The URL of the site will be http://Sitename.com, and network load
HT> balancer will transfer the request to any one of server behind the
HT> farm.
HT>
HT> This is the detail senario, of my problem.
HT>
HT> I am confuse on how to call diffrent servers in a farm one by one,
HT> or how to add the address in the web.config file.
HT>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.