Donald
Donald

Reputation: 515

AppFabric Local Cache Performance

I'm currently testing out AppFabric Distributed Cache, it's been working great.

When performance testing the Local Cache feature however, I find there is no difference in performance.

For the purposes of the performance test I am storing large pages generated from OutputCache into AppFabric and am noticing the same performance with or without local cache on.

Does anyone else have any similar experience?

I'm using Timeout based local cache, with a ttl of 300 and objectcount of 100000.

Upvotes: 5

Views: 1495

Answers (2)

Shiraz Bhaiji
Shiraz Bhaiji

Reputation: 65361

If the distributed cache is on the local server, then there should be very little difference.Since the main time usage accessing the distributed cache is the transport across the network.

It may be that it takes a bit longer to access the distributed cache than the local on the same machine, since local cache is in process:

When local cache is enabled, the cache client stores a reference to the object locally. This keeps the object active in the memory of the client application

However, local cache does add some sync overhead. So the actual differences will depend on your usage pattern.

Upvotes: 3

Frode Stenstrøm
Frode Stenstrøm

Reputation: 1048

I think this might depend on the type of data your are caching.

We use local cache a lot for web services that have many almost identical Get methods (small data in return). The local cache gave a significant less load on the cache servers, and most transactions take 0 ms.

Upvotes: 0

Related Questions