What are the strongest features of Memcached?

Specifically, what are the strengths it has over Asp.net feature caching

0


source to share


3 answers


memcached is a distributed cache - the entire cache can be spread across multiple boxes. so, for example, you can use memcached to store session data in a cluster environment, so that data is available for any field in the cluster.



memcached can be compared to Microsoft Velocity ( http://blogs.msdn.com/velocity/ ).

+3


source


Another nice feature is memcached works as a standalone service. If you defer the application, the cached data will remain in memory as long as the service is running.



+1


source


We are using memcached as a caching server in an ASP.NET website. We have 12 memcached boxes.

UP for memcached:

  • Much more scalable, just add memory boxes.
  • Cache nodes are very clueless: this means they are unaware of the other participating nodes. This simplifies the management and configuration of such a system.
  • All webservers have the same cache values ​​(so you never see the hop values ​​on which the webserver is serving your request)

DOWN for memcached:

  • compared to the in-memory cache, it is very slow. Mainly due to serialization / deserialization and network latency.
  • Cache nodes are very clueless: for example, there is no way to iterate over all cached items

Memcached is the simplest and fastest tool - you need distributed caching. If you can use the built-in cache in your application, it will always be faster. We are using a cache manager that will dump certain items into memcached and store others in the local cache.

+1


source







All Articles