Refreshing the cache in web farming environment

H

Harsh Trivedi

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.
 
M

Michael Nemtsev [MVP]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top