Web Application Scalability - Introduction
Web Application Scalability - Introduction
Web Application Scalability - Introduction
Scales
Ahmed Abd-ElHaffiez
Agenda
http://modernegypt.bibalex.org
Yslow
scriptaculous.js home.css
1.continue
• Minimize the files size.
– Remove breaks and comments.
• Google AJAX Libraries
– Load Common libraries from google.
Google
prototype.js
Website application.js
2.CDN
Client Server
Apache Configuration:
<ifmodule mod_expires.c>
<filesmatch “\.(jpg|gif|png|css|
Image js)$”>
expires
ExpiresActive on
ExpiresDefault “access plus 2
days”
</filesmatch>
</ifmodule>
Server Side Optimizations
client http://fizo.com/posts
apache
Web server
20-50 requests/sec
(mongrel)
Server Side Optimizations
client http://fizo.com/posts
apache /public/posts
client http://fizo.com/posts
>1000 requests/sec
apache header
Box # 1
Box # 2
Memcached
get /users/fizo
Render body
etag Create etag
304 not modified Compare etag
Renders
cached page
Client Side Caching
Client browser Server
get /users/fizo
Render body
get /users/fizo
Compare last
Request header date
HTTP_IF_MODIFIED_SINCE
fizo.com