473,395 Members | 1,457 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,395 software developers and data experts.

Do I really need to build a custom caching engine?

To keep the background simple here is my problem, I have two web
servers in a web farm I would like to have a centralized caching system
on another server, where I can add and remove items from cache from
that one central server, the other two web server will share the cached
data from this server such as serializable business objects and data
objects. I would like the storage system to be SQL server and the data
that is shared from the cache is not session specific but the cache
data is accessible to all session running on either server. Is this
possible now or do I need to build a custom caching engine based on sql
server that these to web server can access to render data to any and
all users.

May 24 '06 #1
2 2142
You can point your sessionState to a sql server, then put those objects
inside application object so it will be available to all session. Cache is
not for that purpose.

<th****************@gmail.com> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
To keep the background simple here is my problem, I have two web
servers in a web farm I would like to have a centralized caching system
on another server, where I can add and remove items from cache from
that one central server, the other two web server will share the cached
data from this server such as serializable business objects and data
objects. I would like the storage system to be SQL server and the data
that is shared from the cache is not session specific but the cache
data is accessible to all session running on either server. Is this
possible now or do I need to build a custom caching engine based on sql
server that these to web server can access to render data to any and
all users.

May 24 '06 #2
You can do it, but you need a "transport" mechanism that is visible and
usable from any of the machines on the farm. I wrote one using Named Pipes,
any machine can connect to the Cache Service on the "Cache machine" via Pipes
and it uses familiar indexer -type Cache semantics. Doesn't use SQL Server,
but could be made to do so quite easily:

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

Hope that's useful to you.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"th****************@gmail.com" wrote:
To keep the background simple here is my problem, I have two web
servers in a web farm I would like to have a centralized caching system
on another server, where I can add and remove items from cache from
that one central server, the other two web server will share the cached
data from this server such as serializable business objects and data
objects. I would like the storage system to be SQL server and the data
that is shared from the cache is not session specific but the cache
data is accessible to all session running on either server. Is this
possible now or do I need to build a custom caching engine based on sql
server that these to web server can access to render data to any and
all users.

May 25 '06 #3

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

Similar topics

761
by: Neo-LISPer | last post by:
Hey Recently, I researched using C++ for game programming and here is what I found: C++ game developers spend a lot of their time debugging corrupted memory. Few, if any, compilers offer...
0
by: Jonathan Carter | last post by:
I was recently searching for a solution on how to perform an output caching-like solution on a custom control. Obviously the OutputCache directive wasn't available, and I tried using the Response's...
1
by: thedotnetarchitect | last post by:
To keep the background simple here is my problem, I have two web servers in a web farm I would like to have a centralized caching system on another server, where I can add and remove items from...
5
by: BURL ives | last post by:
I am well versed in MS Access. I now want to set up a SQL database on my company's server. However there are some pretty basic questions that I have starting out...I did a bit of searching but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.