SlideShare a Scribd company logo
1 of 47
Faster & more flexible CDN integration

Wim Leers ~ http://wimleers.com/

Drupal.org, IRC, Twitter, LinkedIn: wimleers
Bachelor thesis


“Improving Drupal’s page loading performance”


• Promotor: Prof. dr. Wim Lamotte
• Co-promotor: dr. Peter Quax
• Mentors: Stijn Agten & Maarten Wijnants
Goal

• Faster web sites


     • Speed = satisfaction = more & happier visitors = more revenue




source: http://www.slideshare.net/stubbornella/designing-fast-websites-presentation, Nicole Sullivan, Yahoo!
Goal

• Faster web sites


     • Speed = satisfaction = more & happier visitors = more revenue


• Google: +0.5s → -20% searches




source: http://www.slideshare.net/stubbornella/designing-fast-websites-presentation, Nicole Sullivan, Yahoo!
Terminology: page loading performance




              90%                10%




                    CSS, JS, images …
                    HTML
Drupal’s page loading performance

• One of the most effective measures:
   “Use a CDN”
Drupal’s page loading performance

• One of the most effective measures:
   “Use a CDN”


• Drupal: not yet possible!
Terminology: CDN
Key properties of a CDN
Key properties of a CDN

• Geographical spread
Key properties of a CDN

• Geographical spread


• Pull versus Push

                                          Pull
                                                           F
                          transfer
                                      automatically       We
                          protocol



                           +         virtually no setup



                           –           no flexibility
Key properties of a CDN

• Geographical spread


• Pull versus Push

                                     Pull                 Push
                                                      FTP, SFTP, rsync,
                     transfer
                                 automatically       WebDAV, Amazon S3
                     protocol
                                                             …


                        +       virtually no setup        flexibility



                        –         no flexibility            setup
Key properties of a CDN

• Geographical spread


• Pull versus Push


• Lock-in                            Pull                 Push
                                                      FTP, SFTP, rsync,
                     transfer
                                 automatically       WebDAV, Amazon S3
                     protocol
                                                             …


                        +       virtually no setup        flexibility



                        –         no flexibility            setup
Profiling: Episodes
Profiling: Episodes

• Measures “episodes” during page loading
Profiling: Episodes

• Measures “episodes” during page loading

• Real measurements: JS in browser, for each visitor

• No simulation!
Episodes module
Episodes module

• Drupal module that offers Episodes integration
Episodes module

• Drupal module that offers Episodes integration
Episodes Server module
Episodes Server module

• Drupal module that visualizes the collected measurements
Daemon: File Conveyor
Daemon: File Conveyor

1. Configuration: simple XML file
Daemon: File Conveyor

1. Configuration: simple XML file

2. Detection: instantaneous
Daemon: File Conveyor

1. Configuration: simple XML file

2. Detection: instantaneous

3. Processing: store image more efficiently … — extensible!
Daemon: File Conveyor

1. Configuration: simple XML file

2. Detection: instantaneous

3. Processing: store image more efficiently … — extensible!

4. Syncing: supports many protocols (FTP, Amazon S3 …) — extensible!
Daemon: File Conveyor

1. Configuration: simple XML file

2. Detection: instantaneous

3. Processing: store image more efficiently … — extensible!

4. Syncing: supports many protocols (FTP, Amazon S3 …) — extensible!

5. Result: SQLite DB with CDN URLs
Demo
Daemon’s capabilities: scenario 1

Company wants to switch from CDN provider X to Amazon S3.
- CDN X: FTP
- Amazon S3: custom protocol
Daemon’s capabilities: scenario 1

Company wants to switch from CDN provider X to Amazon S3.
- CDN X: FTP
- Amazon S3: custom protocol


• Setup:


  • CDN X → Amazon S3


  • Daemon
Daemon’s capabilities: scenario 1

Company wants to switch from CDN provider X to Amazon S3.
- CDN X: FTP
- Amazon S3: custom protocol


• Setup:


   • CDN X → Amazon S3


   • Daemon


• Alternative: write a lot of code
Daemon’s capabilities: scenario 2

U.S. company expands to South-Korea
Daemon’s capabilities: scenario 2

U.S. company expands to South-Korea


• Setup:


  • North-American CDN


  • Static file server in South-Korea


  • Daemon + language-/subdomain-based logic to pick CDN/server
Daemon’s capabilities: scenario 2

U.S. company expands to South-Korea


• Setup:


  • North-American CDN


  • Static file server in South-Korea


  • Daemon + language-/subdomain-based logic to pick CDN/server


• Alternative: global CDN or slower web site in South-Korea
CDN integration module
CDN integration module

• Drupal core patch for Drupal 6, committed to Drupal 7
CDN integration module

• Drupal core patch for Drupal 6, committed to Drupal 7

• Basic mode: Origin Pull CDN
CDN integration module

• Drupal core patch for Drupal 6, committed to Drupal 7

• Basic mode: Origin Pull CDN

• Advanced mode: any CDN (daemon)
Test case
Test case
Test case
Conclusion
Conclusion

1. Speed of web site very important
Conclusion

1. Speed of web site very important

2. Episodes → monitor page loading performance
Conclusion

1. Speed of web site very important

2. Episodes → monitor page loading performance

3. CDN integration module → best method to integrate Drupal with a CDN
Conclusion

1. Speed of web site very important

2. Episodes → monitor page loading performance

3. CDN integration module → best method to integrate Drupal with a CDN

4. Daemon → flexible CDN integration
Conclusion

1. Speed of web site very important

2. Episodes → monitor page loading performance

3. CDN integration module → best method to integrate Drupal with a CDN

4. Daemon → flexible CDN integration




     More info? See http://wimleers.com/talk/drupalcon-paris-2009

More Related Content

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Faster & more flexible CDN integration

Editor's Notes

  1. A content delivery network (CDN) is a collection of webservers that are distributed across multiple locations, to deliver data more efficiently to the end user. Typically, the server with the shortest distance to the end user is selected.
  2. - geographical spread: more spread is better, but more expensive - lock-in: * push: supporting all transfer protocols is too hard * pull: not every CDN supports pulling (and unlikely that the same features are supported)
  3. - geographical spread: more spread is better, but more expensive - lock-in: * push: supporting all transfer protocols is too hard * pull: not every CDN supports pulling (and unlikely that the same features are supported)
  4. - geographical spread: more spread is better, but more expensive - lock-in: * push: supporting all transfer protocols is too hard * pull: not every CDN supports pulling (and unlikely that the same features are supported)
  5. - geographical spread: more spread is better, but more expensive - lock-in: * push: supporting all transfer protocols is too hard * pull: not every CDN supports pulling (and unlikely that the same features are supported)
  6. - geographical spread: more spread is better, but more expensive - lock-in: * push: supporting all transfer protocols is too hard * pull: not every CDN supports pulling (and unlikely that the same features are supported)
  7. - geographical spread: more spread is better, but more expensive - lock-in: * push: supporting all transfer protocols is too hard * pull: not every CDN supports pulling (and unlikely that the same features are supported)
  8. - geographical spread: more spread is better, but more expensive - lock-in: * push: supporting all transfer protocols is too hard * pull: not every CDN supports pulling (and unlikely that the same features are supported)
  9. - Best of +- 10 evaluated tools and commercial services
  10. - Best of +- 10 evaluated tools and commercial services
  11. - Best of +- 10 evaluated tools and commercial services
  12. Result: no switching cost → no lock-in!
  13. Result: no switching cost → no lock-in!
  14. Result: no switching cost → no lock-in!
  15. Result: faster web site, same setup cost, lower maintenance cost
  16. Result: faster web site, same setup cost, lower maintenance cost
  17. Result: faster web site, same setup cost, lower maintenance cost
  18. - own web site - > 100.000 visitors per month, >150 countries - makes it a good test case to show the effect of CDN integration - far less images than the average web site, thus less HTTP requests, thus harder to show the difference - Europe + Russia: server in Belgium, rest of the world: CDN with servers in North America - uses ip2country module to determine country of user
  19. - information in the screenshots generated by the Episodes Server module - > 2.7 million episodes measured over > 260k page views - before June 21: large variability, especially globally - starting June 21: CDN integration active - starting June 22: also CSS & JS of delicious widget with CDN integration - very clear downward trend starting June 21, even stronger starting June 22 (partially thanks to caching in the browser)