473,569 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need ideas - caching strategy

hi all,

I need some high level and efficient ideas on how caching should be
designed in the scenario below. The application and the cache will most
likely be in VB.NET.

I have a central interface (does not necessarily have to be a website)
that customers will access. This interface would connect to a load
balancer, which would then randomly choose one of N servers. Those
servers would run the same exact copy of an application (not yet
developed). This application provides some kind of service to the
customer, whatever that may be. These servers get/save data from a
central database server.

Diagram:

Customer -> | Load Balancer |
-> Server 1
-> Server 2
-> Server 3
->...
-> Server N

The database server contains settings that the application needs to run
as well as customer information.

Use Case:
When a customer attempts to access the interface, the load balancer
would randomly pick a server and the app would get the required
information from the database. The non-volatile customer information
would be loaded into the memory of that server and the volatile
information will be grabbed from the customers input. The customer does
what he/she needs to do and disconnects. The nonvolatile customer
information should be stored in some kind of cache.

Let's say the customer reconnects and happens to connect to the same
server. Since the nonvolatile data can be taken from the cache, the
application would run much faster than if it was to query the database
for it.

Question:
What if the load balancer happens to choose another server when the
customer reconnects, but to another server? How would we be able to use
this cache? Obviously I don't want each individual servers to query the
central database if this can be avoided. Some ideas I came up with is
have the servers query each other for the information, but this might
cause network traffic and I don't know how efficient this would be if
several hundred customers connected at the same time.

Please help!

Jan 26 '06 #1
3 1241
Hi Pitachu,

Although that you maybe make your program with VB.Net will the main
functionality of your problem be the inbuild methodic of Windows 2003
Server.

A better place to get your information for your load balacing problem is
that newsgroup. AFAIK does your language.vb code not need changes. However
for that are those newsgroups as well the best place.

I hope this helps,

Cor
Jan 26 '06 #2
Thanks for your reply. I guess I asked here because it wasn't a
question concerning a VB.NET problem and not concerning load
balancing, I was hoping some of you may have some strategies for what
the cache should do in that scenario and within the limitations of
VB.NET.

Jan 26 '06 #3
Thanks for your reply. I guess I asked here because it wasn't a
question concerning a VB.NET problem and not concerning load
balancing, I was hoping some of you may have some strategies for what
the cache should do in that scenario and within the limitations of
VB.NET.

Jan 26 '06 #4

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

Similar topics

1
1738
by: Dan | last post by:
Is there an effective way to stop pages from being cached? I've created several websites that have dynamic content and images that are managed by a client. The images are named according to the "id" generated via an Identity column of their corresponding database record (ex: 1058.jpg). The problem occurs when the client tries to change the...
4
1971
by: Claudio Jolowicz | last post by:
I am trying to find a solution to the following design problem (code at the bottom): We are implementing a trader agent that can trade with other traders on an electronical trading platform. To make the trader more extensible, we have defined a strategy interface and implemented this interface for different trading strategies. The problem...
0
996
by: _jpg_ | last post by:
Hi, I am currently having a problem where I require a client to cache a response (web form), using cache-control: public, but ASP.NET is always writing in a cache-control: private header. I believe this is because I am using Basic Auth, however I still require the cache-control: public header, and even if I do set it manually, ASP.NET...
0
1730
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little while to be processed. At the moment I have programmatic page caching in the "loader" using paramater caching to send a cached version of every...
76
3991
by: kwilder | last post by:
This works, but it doesn't load the latest version of the xml if it was just modified without closing and reopening the browser. Here's the scenario: I have an xml doc called results.xml. It can contain lots of data. <Results> <Data>Stuff</Data> <Data>More stuff</Data>
2
4252
by: beaverme | last post by:
Hi, I have a series of web services. They all use require authentication and successful authentication instantiates a Customer object which is used for billing purposes. All of this is handled by a common base class. I'd like to cache these Customer objects so that I don't have to make a database call each time the service is called but I'm...
5
2061
by: pythoncurious | last post by:
Hi python experts In C++ I can do something like this: class Base { public: void f() { this->f_(); } private: virtual void f_() = 0; };
13
3498
by: George Sakkis | last post by:
I've been trying to track down a memory leak (which I initially attributed erroneously to numpy) and it turns out to be caused by a memory mapped file. It seems that mmap caches without limit the chunks it reads, as the memory usage grows to several hundreds MBs according to the Windows task manager before it dies with a MemoryError. I'm...
9
3231
by: Tool69 | last post by:
Hi, Until now, I was running my own static site with Python, but I'm in need of dynamism. After reading some cgi tutorials, I saw Joe Gregorio's old article "Why so many Python web frameworks?" about wsgi apps and have a question about it. The code he gave works like a charm (I had to make a little change because SQLAlchemy has changed...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7930
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6290
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.