CAB- Thread question

Topics: CAB & Smart Client Software Factory
Jan 28, 2007 at 4:28 AM
I am trying to figure out the best way to pull data from a data layer, and keep that information cached so that you don't have to make repeated calls to the data base. From the little research I have done so far, it seems as simple as using CAB's service to pull data from the data layer, and populating a view and simply use that cached instance in a workitem/module, and pass it around whenever needed. However, i'm not sure how the underlying threads work in CAB, and I thought about using the cache application block provider that comes with enterprise library. Does any one have any experience doing something like this?
Jan 28, 2007 at 6:43 AM
Without knowing all your requirements, I would suggest creating a Service and storing the data in the service. I'm doing this with over 10 services and it works great. If you're data changes often you could set up a polling thread to check for new data and fire an event with the EventBroker to allow Presenters to respond and update Views.