Your SlideShare is downloading. ×

Web Application Cache (APC, Memcache)

380

Published on

This presentation is on the basics of web application cache. …

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

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

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.     Web Application Caching
  • 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. 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. Type of caches • Opcode Cache : APC, eAccelerator, Wincache, Xcache • Query Result cache : Memcache, Redis • CDNs : Content Delivery Networks 19/12/11
  • 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. APC 19/12/11
  • 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. Memcache 19/12/11
  • 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. CDNs 19/12/11
  • 11. Thank You 19/12/11

×