Re: Using DataSet and remoting to implement distributed cache--pattern
From: Sam Santiago (ssantiago_at_n0spam-SoftiTechture.com)
Date: 08/13/04
- Next message: Liam Davis-Mead: "Re: Using DataSet and remoting to implement distributed cache--pat"
- Previous message: Liam Davis-Mead: "Using DataSet and remoting to implement distributed cache--pattern"
- In reply to: Liam Davis-Mead: "Using DataSet and remoting to implement distributed cache--pattern"
- Next in thread: Liam Davis-Mead: "Re: Using DataSet and remoting to implement distributed cache--pat"
- Reply: Liam Davis-Mead: "Re: Using DataSet and remoting to implement distributed cache--pat"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 13 Aug 2004 09:41:09 -0700
Have you looked at the Caching Application Block provided by the Pattern and
Practices Group from Microsoft:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/cachingblock.asp
>From reading your outline, it sounds like you are introducing a lot of
overhead and complexity in order to provide caching. It's a judgment call
whether in the long run all the effort would be truly worth it. Especially,
if you are writing your own caching layer. See if the application block
fills your needs and keep it simple. That's my 2 cents ;-).
Thanks,
Sam
-- _______________________________ Sam Santiago ssantiago@n0spam-SoftiTechture.com http://www.SoftiTechture.com _______________________________ "Liam Davis-Mead" <Liam Davis-Mead@discussions.microsoft.com> wrote in message news:3B1C5E8D-F185-490E-A30B-E69A12F21EFC@microsoft.com... > I'm interested in implementing a data access layer which uses typed DataSets > as data transfer objects. I would like for the assembler which is > responsible for managing each DTO and its corresponding DataAdapter to > maintain a static cache--a larger DataSet of the same type as the DTO. Any > record which is retrieved from the database to fill a business object should > be cached when the DTO is filled. Additionally, the assembler should attempt > to fill DTOs from the cache first (the assumption here is that the typical > business object will be a single row of some primary table in the dataset, > and if that row is present in the dataset, all related rows in related tables > will be, too). However, I want this cache to be able to scale accross > multiple application servers in a web farm, so I need to propagate updates to > the other caches. > > The approach I was considering would be for the cache local to the update to > enlist the caches of the other servers in a distributed transaction along > with the database. Upon enlisting, each cache would assert a local lock > preventing updates to that particular DataSet. The database would be > updated, and if everything went smoothly, the DataSet diffs sent out to the > other caches (potentially through a reliable multicast). If none of the > caches had problems, all DataSets would approve their changes, and the > database transaction would be committed. > > I have provided a much more in-depth description of the method at > http://episteme.arstechnica.com/eve/ubb.x?a=tpc&s=50009562&f=6330927813&m=476000945631. > For the sake of brevity, I only included the outline here, as I suspected > this would be a more specifically knowlegeable audience. > > Has anyone heard of a similar implementation, or could provide references or > guidance for implementing a distributed cache in the data layer?
- Next message: Liam Davis-Mead: "Re: Using DataSet and remoting to implement distributed cache--pat"
- Previous message: Liam Davis-Mead: "Using DataSet and remoting to implement distributed cache--pattern"
- In reply to: Liam Davis-Mead: "Using DataSet and remoting to implement distributed cache--pattern"
- Next in thread: Liam Davis-Mead: "Re: Using DataSet and remoting to implement distributed cache--pat"
- Reply: Liam Davis-Mead: "Re: Using DataSet and remoting to implement distributed cache--pat"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|