SlideShare a Scribd company logo
Experience in Building Scalable Web Sites through Infrastructure's Aspect Barcamp Bangkok 3  May 23-24, 2009 Sripathum University
Gen#1 Web + DB Cost effective for startup
Gen#2 Web After boom!! DB
Gen#3 Web More boom!!, add more web servers but DB is the problem DB Web Web
Gen#4 Web Replication could save your life for a while DB Web Web DB Replication WRITE Query READ ONLY
Gen#... Memcached: reduce READ query at DB Reverse Proxy: serves static contents DB Web Reverse Proxy DB Replication Memcached Memcached Web Reverse Proxy WRITE Query READ ONLY
Finally: Horizontal Scaling masterA Reverse Proxy Replication Reverse Proxy Web (dynamic) Web (dynamic) masterB Global Database - Multimaster Slave 1 Slave 2 UserDB1 UserDB2 UserDB3 UserDB..n Memcached
Behind the Scene Hardware (LB, Server)
Software architecture
OS
Web Server
Caching
DB
Infra:  dns, network, storage, firewall, security process, log, backup, ntp, logging, source control, monitoring,  ...
Good to Know 80% of the end-user response time is spent on the front-end Ref: developer.yahoo.com
YAHOO's “Best Practices for Speeding Up Your Web Site” Minimize HTTP requests
Enable GZIP
Add “Cache-Control” HTTP header
Put stylesheet at the top
Put scripts at the bottom
............... more at developer.yahoo.com
TIPS Enable “keep-alive” at all termination hops
TIPS Split STATIC contents server Set up new top level domain to reduce cookie in HTTP header
TIPS No more cookie in HTTP request
Lot of Things to find out Hardware (LB, Server)
Software architecture
OS
Web Server
Caching
DB
Infra:  dns, network, storage, firewall, security process, log, backup, ntp, logging, source control, monitoring,  ...
Hardware: Server Any class can be used (blade, rack, local brand)

More Related Content

What's hot (19)

PDF
RADOS improvements and roadmap - Greg Farnum, Josh Durgin, Kefu Chai
Ceph Community
 
PPTX
Day 2 General Session Presentations RedisConf
Redis Labs
 
PDF
Basic and Advanced Analysis of Ceph Volume Backend Driver in Cinder - John Haan
Ceph Community
 
PDF
Using Redis at Facebook
Redis Labs
 
PDF
Performance tuning in BlueStore & RocksDB - Li Xiaoyan
Ceph Community
 
PDF
Globo.com & Varnish
lokama
 
PDF
Performance comparison of Distributed File Systems on 1Gbit networks
Marian Marinov
 
PPT
Considerations for building your private cloud folsom update
Ryan Richard
 
PDF
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Danielle Womboldt
 
PDF
RBD: What will the future bring? - Jason Dillaman
Ceph Community
 
PDF
Achieving the ultimate performance with KVM
StorPool Storage
 
PDF
Comparison of foss distributed storage
Marian Marinov
 
PDF
Ceph Client librbd Performance Analysis and Learnings - Mahati Chamarthy
Ceph Community
 
PDF
Ceph Day San Jose - Object Storage for Big Data
Ceph Community
 
PDF
Linux Block Cache Practice on Ceph BlueStore - Junxin Zhang
Ceph Community
 
PPTX
RedisConf17- Using Redis at scale @ Twitter
Redis Labs
 
PDF
Advanced Administration, Monitoring and Backup
MongoDB
 
PPTX
Ceph Day San Jose - Enable Fast Big Data Analytics on Ceph with Alluxio
Ceph Community
 
PDF
Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server
Ceph Community
 
RADOS improvements and roadmap - Greg Farnum, Josh Durgin, Kefu Chai
Ceph Community
 
Day 2 General Session Presentations RedisConf
Redis Labs
 
Basic and Advanced Analysis of Ceph Volume Backend Driver in Cinder - John Haan
Ceph Community
 
Using Redis at Facebook
Redis Labs
 
Performance tuning in BlueStore & RocksDB - Li Xiaoyan
Ceph Community
 
Globo.com & Varnish
lokama
 
Performance comparison of Distributed File Systems on 1Gbit networks
Marian Marinov
 
Considerations for building your private cloud folsom update
Ryan Richard
 
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Danielle Womboldt
 
RBD: What will the future bring? - Jason Dillaman
Ceph Community
 
Achieving the ultimate performance with KVM
StorPool Storage
 
Comparison of foss distributed storage
Marian Marinov
 
Ceph Client librbd Performance Analysis and Learnings - Mahati Chamarthy
Ceph Community
 
Ceph Day San Jose - Object Storage for Big Data
Ceph Community
 
Linux Block Cache Practice on Ceph BlueStore - Junxin Zhang
Ceph Community
 
RedisConf17- Using Redis at scale @ Twitter
Redis Labs
 
Advanced Administration, Monitoring and Backup
MongoDB
 
Ceph Day San Jose - Enable Fast Big Data Analytics on Ceph with Alluxio
Ceph Community
 
Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server
Ceph Community
 

Similar to Experience In Building Scalable Web Sites Through Infrastructure's View (20)

ODP
Caching and tuning fun for high scalability
Wim Godden
 
ODP
Caching and tuning fun for high scalability @ FOSDEM 2012
Wim Godden
 
PDF
Top ten-list
Brian DeShong
 
PPTX
Drupal performance
Piyuesh Kumar
 
ODP
Caching and tuning fun for high scalability @ PHPTour
Wim Godden
 
ODP
Clug 2011 March web server optimisation
grooverdan
 
ODP
Caching and tuning fun for high scalability
Wim Godden
 
PPTX
Case Study with Answers.com on Scaling with Memcached and MySQL
answers
 
PPT
Planning for-high-performance-web-application
Nguyễn Duy Nhân
 
PDF
Clug 2012 March web server optimisation
grooverdan
 
PPT
Performance and Scalability
Mediacurrent
 
PDF
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
PDF
Bottom to Top Stack Optimization with LAMP
katzgrau
 
PDF
Bottom to Top Stack Optimization - CICON2011
CodeIgniter Conference
 
ODP
Caching and tuning fun for high scalability
Wim Godden
 
PDF
High Performance Drupal Sites
Abayomi Ayoola
 
PDF
Enhancing scalability with intelligent caching
Eric Ritchie
 
PPTX
Joomla! Performance on Steroids
SiteGround.com
 
ODP
phptek13 - Caching and tuning fun tutorial
Wim Godden
 
PDF
Cluster Fudge: Recipes for WordPress in the Cloud (WordCamp Austin 2014 Speaker)
Grant Norwood
 
Caching and tuning fun for high scalability
Wim Godden
 
Caching and tuning fun for high scalability @ FOSDEM 2012
Wim Godden
 
Top ten-list
Brian DeShong
 
Drupal performance
Piyuesh Kumar
 
Caching and tuning fun for high scalability @ PHPTour
Wim Godden
 
Clug 2011 March web server optimisation
grooverdan
 
Caching and tuning fun for high scalability
Wim Godden
 
Case Study with Answers.com on Scaling with Memcached and MySQL
answers
 
Planning for-high-performance-web-application
Nguyễn Duy Nhân
 
Clug 2012 March web server optimisation
grooverdan
 
Performance and Scalability
Mediacurrent
 
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
Bottom to Top Stack Optimization with LAMP
katzgrau
 
Bottom to Top Stack Optimization - CICON2011
CodeIgniter Conference
 
Caching and tuning fun for high scalability
Wim Godden
 
High Performance Drupal Sites
Abayomi Ayoola
 
Enhancing scalability with intelligent caching
Eric Ritchie
 
Joomla! Performance on Steroids
SiteGround.com
 
phptek13 - Caching and tuning fun tutorial
Wim Godden
 
Cluster Fudge: Recipes for WordPress in the Cloud (WordCamp Austin 2014 Speaker)
Grant Norwood
 
Ad

Recently uploaded (20)

PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Python basic programing language for automation
DanialHabibi2
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Ad

Experience In Building Scalable Web Sites Through Infrastructure's View