Tuesday, February 12, 2019

Memcached

Memcached is an open source caching system for distributed caching used to optimize the performance of a page for fast accessibility.
It reduces the load on server by storing the frequent database calls result sets.

Memcached was developed by Brad Fitzpatrick for LiveJournal in 2003.

Benefits:

1. Open source
2. Can be implemented by various languages - PHP, .NET, JAVA
3. Cross platform. So can be implemented in Windows, Linux
4. Memcached is distributed - crucially this means that if I have a cluster of servers accessing the cache, all of them are essentially reading from and writing to the same cach


Which companies use it:

Netlog, Facebook, Flickr, Wikipedia, Twitter, and YouTube among others

See the stackshare:
https://stackshare.io/memcached


Other competitors:
There are a couple of In-Memory distributed cache engines such as Velocity, NCache and ScaleOut.

The other tool used for caching is Varnish.
Varnish is bit different to Memcache. Rather than storing data for a request, Varnish stores complete page. However Varnish is an expensive but worth option when you have lots of traffic coming to your page. 
Wikipedia uses Varnish for page caching as the content of the page is not changed so frequently.
For further information visit https://varnish-cache.org?ref=vikask


No comments: