What is Memcached?
Pros and Cons of Memcache
Properties
API Doc
Installing on Windows
Installing on Ubuntu
Telnet to the server
Spy Memcached (Memcached Java Client)
Memcached server is an in memory cache that stores anything from binary to text to primitives associated with a key as a Key-Value pair. Like with any other caches, storing data in memory prevents you from going to the database or fileserver or any backend system every time a user requests for the data. That saves a lot of load of your backend systems, leading to higher scalability. Since the data is stored in memory, it is generally faster than making an expensive backend call too.
Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
Pros:
1) Reduces database load.2) Perfect for websites with high database load.3) Significantly reduces the number of retrieval requests to database.4) Cuts down the I/O access (hard disk)
Cons:
1) Not a persistent data store2) Not a database3) Not application specific4) Cannot cache large object (key size = 255 chars, max value = 1 MB)
Properties:
No Replication
No major configuration required
Uses specified RAM value, Used LRU in case RAM is fully utilized.
Uses:
Session Management
Optimizing DB hits by caching data in memory
Demo Source Code:
https://drive.google.com/file/d/0B1ve_YnkC2mweVVpalFyMFhPM0k/view?usp=sharing
Windows 32 bit set up:
https://drive.google.com/file/d/0B1ve_YnkC2mwSEhSV3VzNWg3dVk/view?usp=sharing
Windows 64 bit set up:
https://drive.google.com/file/d/0B1ve_YnkC2mwQVdvNGxUT2FWc1E/view?usp=sharing
Website: http://www.learnjavaj2ee.com
FB: https://www.facebook.com/pages/Learn-Java-J2EE/331910750329827
You tube Channel: https://www.youtube.com/channel/UCLCGtNHnUjoLdJSH2HVN7kA
Pros and Cons of Memcache
Properties
API Doc
Installing on Windows
Installing on Ubuntu
Telnet to the server
Spy Memcached (Memcached Java Client)
Memcached server is an in memory cache that stores anything from binary to text to primitives associated with a key as a Key-Value pair. Like with any other caches, storing data in memory prevents you from going to the database or fileserver or any backend system every time a user requests for the data. That saves a lot of load of your backend systems, leading to higher scalability. Since the data is stored in memory, it is generally faster than making an expensive backend call too.
Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
Pros:
1) Reduces database load.2) Perfect for websites with high database load.3) Significantly reduces the number of retrieval requests to database.4) Cuts down the I/O access (hard disk)
Cons:
1) Not a persistent data store2) Not a database3) Not application specific4) Cannot cache large object (key size = 255 chars, max value = 1 MB)
Properties:
No Replication
No major configuration required
Uses specified RAM value, Used LRU in case RAM is fully utilized.
Uses:
Session Management
Optimizing DB hits by caching data in memory
Demo Source Code:
https://drive.google.com/file/d/0B1ve_YnkC2mweVVpalFyMFhPM0k/view?usp=sharing
Windows 32 bit set up:
https://drive.google.com/file/d/0B1ve_YnkC2mwSEhSV3VzNWg3dVk/view?usp=sharing
Windows 64 bit set up:
https://drive.google.com/file/d/0B1ve_YnkC2mwQVdvNGxUT2FWc1E/view?usp=sharing
Website: http://www.learnjavaj2ee.com
FB: https://www.facebook.com/pages/Learn-Java-J2EE/331910750329827
You tube Channel: https://www.youtube.com/channel/UCLCGtNHnUjoLdJSH2HVN7kA
0 comments:
Post a Comment