English 中文(简体)
Write-though caching of large data sets in WCF?
原标题:

We ve got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities.

Some of the WCF calls return a large data set. Since this data set doesn t change very often, I m considering some sort of write-through cache on the client, and only getting the deltas from the WCF service.

That is: the client both reads from the service and writes to the service.

I m not looking for disconnected/offline operation, but since the majority of the data doesn t change very often, I d probably implement this with a local data store.

I don t want the local store to get too stale, and I don t think I m too concerned about conflict resolution, because updates will always go straight to the WCF service -- think of it as a write-through cache.

Would Microsoft s Sync Framework be good for this? Could I use a local SQL-CE cache and perform the updates over WCF? The service end has a SQL Server 2005/2008 backend, but I don t want to talk to it directly. Does Sync Framework integrate well with WCF?

Are there other solutions out there? Should I roll something myself?

问题回答

I don t think you have to couple it to WCF at all. FeedSync allows you to publish directly to an RSS feed.

The only that I m not too sure about is if it would be suitable for a "large dataset" though. Since you don t need two way replication, if your dataset is extremely large, you might want to write your own WCF implementation to optimize it; especially for the initial population.





相关问题
Write-though caching of large data sets in WCF?

We ve got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

how to tell clicking "back" to load cache?

I would like for my site when someone clicks "Back" or "Forward" for the server to tell the browser to load the cache instead of reloading the entire page. I ve tested some headers and done research, ...

java plugin cache and dynamic IP host

I m trying to use Amazon S3 and Amazon Cloudfront CDN to deliver the jar files of my applet application. I m seeing several cache misses of my jars by the java plugin. This is a show-stopper for me, ...

Frequently Used metadata Hashmap

Are there any implementations of a static size hashtable that limits the entries to either the most recently or most frequently used metadata? I would prefer not to keep track of this information ...

PHP - Memcache - HTML Caching

I would like to create a caching system that will bypass some mechanisms in order to improve the performance. I have some examples: 1-) I have a dynamic PHP page that is updated every hour. The page ...

Performance of Sql subqueriesfunctions

I am currently working on a particularly complex use-case. Simplifying below :) First, a client record has a many-to-one relationship with a collection of services, that is, a single client may have ...

热门标签