I am developing a rich client application using WPF-PRISM-MVVM.
The client interacts with a repository service which provides CRUD functionality and publishes any changes for domain entities via WCF channel.
The client handles domain entities cache in order to improve performance and provide offline functionality.
For that purpose I wrote a repository agent service which lives on the client side and wraps the repository service and handles caching and changes propagation to the relevant client side component that have interests in domain entities changes.
After the long introduction my question is this the way to do it?
Are there any client side data handling and caching patterns that I should aware of?
Cheers,
Doron
We use AOP in the form of PostSharp for our client side caching, we simply add an attribute to a method and viola it is cached :
Our aspect looks like this- it defers the actual cache implementation to an instance of
ICacheServicebut you get the idea.