What is a domain IDN?
22 August, 2017
Tricks SQL €“ To eliminate duplicated registries
5 September, 2017

Memcached in your servant VPS

memcached-in-your-servant-vps

Memcached is a used free system for the storage in cache of data in the ram memory, so that it avoids that the user must accede to a space of external data storage. Thus, the access to these data is very many faster.

At the moment, more and more servers VPS incorporate Memcached, in addition to other systems of cache. This system was developed in the middle of year 2003 of the hand of Brad Fitzpatrick, who implemented it in its LiveJournal website.

The operation of Memcached is based on a table hash, which is distributed in several equipment. This way, as this is arriving at its limit of storage, those data that are not used for more time erase for being able to store the new ones. Thus, one secures some extraordinary results of load.

How work does Memcached?

The operation of this system is relatively simple to understand. The first a to consider is that Memcached goes to host and port specific, so that is able to store data in any type of format.

Then, the main task of Memcached is to store the items, the assigned word to denominate to the data, in a great table of hash that is distributed in two or more equipment. The system is in charge to mapear the items based on the key that the user has assigned to him to each of them, which cannot have a weight greater to 1 Megabyte.

One of the characteristics of Memcached is that burglaryable is a system with architecture. This way, if at a certain moment the amount of connections is greater to the one than it can support an only servant, it distributes the load with other servers.

The Memcached protocol only implements three commandos of storage that is worth the trouble to consider.

  • ADD: it is used to add a certain item, as long as this it does not exist.
  • REPLACE: this commando serves to update an item. He is requisite indispensable that this exists previously.
  • SET: a commando who has two functions. On the one hand, to update the item if this already he exists. And, on the other hand, to add it in case he does not exist.

How it is the architecture of Memcached?

The users use bookstores to accede to the servers, so that all of them have a detailed list of all the servers. However, the servers do not communicate among them.

Who use Memcached?

At the moment, Memcached is a system more and more used by some of the most popular websites worldwide, among them several social networks as YouTube, Facebook or Twitter. It is necessary to consider that the traffic in this type of websites is more and more massive, so that the companies have been forced to bet by Memcached to increase the speed of answer to requests Web of the users.

It lets a commentary

Your email address will not be published. The obligatory fields are noticeable with *

This site uses Akismet to reduce the Spam. It learns how the data of your commentaries are processed.