SlideShare a Scribd company logo
1 of 32
EVOLUTION OF A
WEB ARCHITECTURE WITH
 AMAZON WEB SERVICES
    Richard Poirier @richpoirier
EVOLUTION OF A
WEB ARCHITECTURE WITH
 AMAZON WEB SERVICES
2010




1 million visitors / month
2012




10 million visitors / month
1&1




Web / DB / Mail
Memcached
Read Through Caching
Write Through Caching

  Replication + Caching =
Write Through Caching
Cache Stampedes
Op Code Caching
Scaling Web Servers
Scaling Web Servers
Avatars, Backgrounds, Covers, Text Files
Scaling Web Servers
Scaling the Master Database
Scaling the Master Database
Scaling the Master Database
Moving to RDS
Moving to RDS
Scaling Search
InnoDB > MyISAM
Background Jobs
Still Not Elastic
Thanks!




http://joind.in/7423
      @richpoirier

More Related Content

Viewers also liked

Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
Manish Singh
 
Unit 1 architecture of distributed systems
Unit 1 architecture of distributed systemsUnit 1 architecture of distributed systems
Unit 1 architecture of distributed systems
karan2190
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
Rupsee
 

Viewers also liked (10)

Building a Scalable Architecture for web apps
Building a Scalable Architecture for web appsBuilding a Scalable Architecture for web apps
Building a Scalable Architecture for web apps
 
Facebook architecture presentation: scalability challenge
Facebook architecture presentation: scalability challengeFacebook architecture presentation: scalability challenge
Facebook architecture presentation: scalability challenge
 
Haypotesis ng Pananaliksik
Haypotesis ng PananaliksikHaypotesis ng Pananaliksik
Haypotesis ng Pananaliksik
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
 
facebook architecture for 600M users
facebook architecture for 600M usersfacebook architecture for 600M users
facebook architecture for 600M users
 
Mongo DB
Mongo DBMongo DB
Mongo DB
 
An Introduction to Elastic Search.
An Introduction to Elastic Search.An Introduction to Elastic Search.
An Introduction to Elastic Search.
 
Unit 1 architecture of distributed systems
Unit 1 architecture of distributed systemsUnit 1 architecture of distributed systems
Unit 1 architecture of distributed systems
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
Content Delivery Network
Content Delivery NetworkContent Delivery Network
Content Delivery Network
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 

Wattpad - Evolution of a Web Architecture with Amazon Web Services

Editor's Notes

  1. \n
  2. - youtube\n- upload\n- 7 million stories\n- mobile readers, website\n\n
  3. - current scale\n- very social\n
  4. - evolution\n- major, why\n
  5. - one server\n- no caching, simple\n
  6. - more complicated, lots more features\n- show you how we went from this (last slide) to this (this slide)\n
  7. - mail, web ok\n- db bottleneck, own server\n
  8. - web alone on ec2\n- mail\n- master for writes, slaves for reads\n- db still bottleneck, what’s hot, stories not changing\n
  9. - high performance, distributed, in memory object caching system\n- in memory key-value store\n- php extension\n- cache everything\n- read-through/write-through, stampedes\n
  10. - code maintainability\n- write through is data integrity\n
  11. - replication LAG\n- example - delete cache\n\n
  12. \n
  13. - explain\n
  14. - db’s humming\n- web server bottleneck, scaled vertically as much as possible\n- don’t want to split them\n
  15. - caching compiled bytecode of scripts\n- apc\n- great except zero-downtime deploy problems\n- bought us a few more months\n\n
  16. - one web server starting to look at a lot like this horse (donkey?)\n- need more horses\n- shared resources\n
  17. - reside on web servers\n- distributed file system\n
  18. - upload s3, cache hd\n- 100M req/month\n- rackspace bad\n- sessions\n- 4 web servers\n\n
  19. - ELB\n- haproxy, don’t skimp on instance size\n\n
  20. - horsedonkey\n- news feed\n\n
  21. - facebook\n- events 150M rows\n- 500M\n- redis\n
  22. - memcached but persist\n- 20k req/s\n- read counts, reading positions\n
  23. - redis added\n- master doing better, slaves struggling again\n
  24. - scalr, in a bad position\n- explain rds\n- concerns\n
  25. - migrate\n- july 1\n- 10 slaves -> 5 slaves\n\n
  26. - major things\n
  27. - full text search\n- real time indexing, really fast\n- easy to scale horizontally\n
  28. - row level locking\n
  29. - upload story\n- worker\n- also easy to scale horiz\n
  30. - this is where we’re at now\n- plus data’s stuff\n
  31. - still evolving\n- next year automated all scaling processess\n
  32. \n