c# - CACHE infrastructure with WCF services -


i have wcf services(let's call x) has cache service client in it. that, end user calls wcf service not know cache , should not care it.

my cache service wcf service not publicly avaliable, x can call it. know possible put kind of object in cache(let's assume cache httpruntime.cache), when issue comes in wcf, presenting cached values wcf service, kind of object problem because of unknown data types.

my questions is, how can serve cache values wcf can generic?

i know isn't going solve issue if you're stuck architecture, i'd avoid set-up completely.

i'd use dedicated data cache of sort dedicated client talks cache in efficient way.

if you're not going out-of-process caching, use in-memory cache, otherwise if you're going cross-process, or on network, you'd better off using dedicated data cache appfabric/velocity or memcached.

you'd many other benefits out-of-the-box too, distributed caching, redundancy , automatic fail-over. doubt wcf going winning solution data caching unknown objects.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -