473,804 Members | 4,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2157
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******** *************@3 8g2000cwa.googl egroups.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
28982
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 completely safe modes. Unsurprisingly, there is a very high failure rate among projects using C++ for modern game development.
0
1151
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 Cache object but to no avail. I had looked in every ASP.NET book I have (1.0/1.1/2.0) as well as tons of online articles and found no mention of anyone caching custom controls. Finally, by mistake, I stumbled upon the PartialCaching attribute,...
1
1042
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 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...
5
1633
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 didn't see the direct answers so that is why I am asking here: In Access, there is a switchboard and forms and reports for a user to interact with. I don't believe the same exists in SQL. What does one do in place of those items. For example,...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10330
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10076
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7616
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4297
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
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.