Web Application Caching
What is 
Caching?

•
•
•
•
•

Web application caching is the process of storing dynamically generated data 
for reuse and ...
Why to use 
Caching?

• To improve web application performance
• To minimize the requests to the server
• Even small perfo...
Type of caches

• Opcode Cache : APC, eAccelerator, Wincache, Xcache
• Query Result cache : Memcache, Redis
• CDNs : Conte...
APC

• APC : Alternative PHP Cache
• That heavily optimizes and tunes the output of the PHP bytecode compiler and stores
t...
APC

19/12/11
Memcache

•
•
•
•

Key Value pair
Slabs, pages, chunks
A slab class is a collection of pages divided into same sized chunk...
Memcache

19/12/11
CDNs

• A content delivery network or content distribution network (CDN)
• large distributed system of servers deployed in...
CDNs

19/12/11
Thank You

19/12/11
Upcoming SlideShare
Loading in...5
×

Web Application Cache (APC, Memcache)

417

Published on

This presentation is on the basics of web application cache.
With the opcode cache, memcache, CDNs....

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
417
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
23
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Web Application Cache (APC, Memcache)

  1. 1.     Web Application Caching
  2. 2. What is  Caching? • • • • • Web application caching is the process of storing dynamically generated data  for reuse and leaving data closer to the end user.  Caching used to store static & dynamic data.  For static (js, images, css) there are different kind of caching mechanism used,  CDN : akamai, maxcdn,  For application File, object cache opcode cache get used : APC, eaccelarator,  wincache, xcache For dynamic data caching Memcache, Redis,  19/12/11
  3. 3. Why to use  Caching? • To improve web application performance • To minimize the requests to the server • Even small performance improvements from caching can drastically  improve the user experience. • Reduced server workload can translate to reduced hardware and support  costs. 19/12/11
  4. 4. Type of caches • Opcode Cache : APC, eAccelerator, Wincache, Xcache • Query Result cache : Memcache, Redis • CDNs : Content Delivery Networks 19/12/11
  5. 5. APC • APC : Alternative PHP Cache • That heavily optimizes and tunes the output of the PHP bytecode compiler and stores the final, compiled result in shared memory. • This bytecode optimization leads to faster runtime execution since source files do not need to be recompiled • re-use the compiled code rather than having to retrieve the opcodes from a disk cache, • 3x increase in page generation speed 19/12/11
  6. 6. APC 19/12/11
  7. 7. Memcache • • • • Key Value pair Slabs, pages, chunks A slab class is a collection of pages divided into same sized chunk. Each slab class has one or more pages, The page is of a predefined size (default 1MB). So, depending on the chunk size each page has a certain number of chunks and some space left over wasted • LRU is rescue : When memory gets full, so no pages can be created, the LRU (Least Recently Used) algorithm kicks in. 19/12/11
  8. 8. Memcache 19/12/11
  9. 9. CDNs • A content delivery network or content distribution network (CDN) • large distributed system of servers deployed in multiple data centers across the Internet • The goal of a CDN is to serve content to end-users with high availability and high performance. • CDN serves : static files like js, css, images, text files 19/12/11
  10. 10. CDNs 19/12/11
  11. 11. Thank You 19/12/11
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×