473,327 Members | 2,007 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,327 software developers and data experts.

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 1227
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
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...
4
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...
0
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...
0
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...
76
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...
2
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...
5
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
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...
9
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.