SlideShare a Scribd company logo
PHASE2TECHNOLOGY.COM
Drupal is Not
Your Web Site
!
Develop for high-scale, fragmented sites
DrupalCon Austin - June 3, 2014
!
Tobby Hagler
@thagler d.o: tobby
Presumptions and Expectations
• Beginner level discussion, but still familiar and
comfortable with site building with Drupal
• Passing familiarity with topics presented here, but not
significant experience with them
• Will be an overview of concepts; an introduction designed
to lead you to thinking about your site build approach
• Suggested modules
Overview
• What a Web site really is
• How does Drupal fit into the stack that is your Web site?
• Other elements of a Web site to consider
• Removing things from Drupal to help overall performance
• Real-time content updates on your Web site
The Web site
A location connected to the Internet that
maintains one or more pages on the
World Wide Web.
Merriam-Webster
“ ”
Drupal is not your Website
Common Page Assembly Methods
• Static (flat) HTML files
• Server-side Includes (SSI)
• CGI
• Scripting and template languages
• Content Management Systems (CMS)
• Edge-side Includes (ESI)
Server-Side Includes (SSI)
• HTTP/Web server parses files (.shtml) for commands
• <!--#include file="/path/to/file.txt" -->
• <!--#include virtual="menu.cgi" —>
• <!--#if expr="${SomeBoolean}" --> … <!--#endif -->
;
Image courtesy drupal.org
Drupal Theming & Page Assembly
• User makes request for a Web page “/node/123”
• Drupal bootstrap process begins, callback function
executed, hooks invoked, etc.
• Content is dynamically rendered to HTML via theme
functions *
• HTML document is delivered to the user
* Ignore cache and other steps for now
How the page is ultimately generated, it matters not to the Web
browser requesting the page. In the end, it will receive HTML that it
will parse, and make requests for additional elements (images, CSS
files, JavaScript files, etc.) and deliver the final presentation to the
end user.
How the page is ultimately generated, it matters not to the Web
browser requesting the page. In the end, it will receive HTML that it
will parse, and make requests for additional elements (images, CSS
files, JavaScript files, etc.) and deliver the final presentation to the
end user.
!
What the browser displays may be different than the HTML it
receives. i.e., JavaScript may hide content or make additional
requests for more things to display.
Why is Drupal
not my Web site?
A Typical Drupal Implementation
• Nodes contain articles, stories, blog posts, etc.
• Blocks provide ancillary content that can be repeated
• Views lists pages of related or similar content
• Panels allows the arrangement of content pieces
• Theme provides design and user experience
So Drupal is my Web site?
With this simple implementation, what Drupal generates and the
HTML documents the user receives are essentially the same.
!
!
2 + 2 = 4 and 2 + x* = 4 are also essentially the same.
* Where x = 2
Performance
Considerations
Document delivery costs
• Static HTML costs (practically) nothing, file I/O; difficult to
maintain (even with a CMS)
• SSI is largely file I/O and somewhat CPU intensive
• PHP code execution is memory intensive and CPU bound
• MySQL uses CPU, memory, and I/O heavily
• Resources limit the number of simultaneous users (traffic)
PHP execution is costly
Having the Web server invoke PHP, and having PHP retrieve
content and render a full HTML document on every page request is
resource intensive.
!
Drupal employs a number of caching systems and optimization to
reduce server stress.
Image courtesy drupal.org
Scaling Drupal
To be able to handle traffic, introduce multiple Web servers that all
serve Drupal’s content.
!
Employ various caching schemes in front and behind Drupal.
Drupal is not your Website
Drupal is the back-end
When behind Varnish or a CDN, the (unauthenticated) Web user
does not interact with Drupal directly*. The request is handled by
delivering content from cache, returning the same HTML document
sent to any other user requesting the same path. Drupal does not
and cannot return something different since the request is not sent
to Drupal.
* Assuming cache is already primed
Fragmentation
Drupal and Fragmentation
Drupal is already doing enough. It doesn’t need to do additional
processing to fetch content and ingest it. Offload some of the work
to other services. It’s OK to decentralize.
!
Use 3rd-party services because that’s where the content originates.
!
Sometimes Drupal isn’t the best thing to handle all of your content
Assembling Fragments
• Client-side Javascript
• AJAX
• WebSockets
• Varnish/CDN Edge-Side Includes
• Include content into a Varnish-cached page
Drupal is not your Website
Typical 3rd-Party Content
• User comments (Facebook, Disqus, LiveFyre)
• Twitter
• Real-time scores or standings
• Web pages hosted on legacy systems
• Breaking news alerts
• Analytics
Externally Hosted Comments
Externally Hosted Comments
Most commenting systems provide code (HTML, JavaScript, etc.)
that can be placed on the page.
!
Simply adding code and simple references to the parent page are
all that is needed. Drupal is otherwise unaware of that content.
Implementing Real-Time Updates
• WebSocket specification
• WebSocket JavaScript Interface
• Socket.IO — Node.js project
• JavaScript framework and WebSocket API with long
polling
• Jetty — Java servlets and HTTP server
Live Scoring & Real-Time Updates
Socket.io
<script	
  src="/socket.io/socket.io.js"></script>	
  
<script>	
  
	
  	
  var	
  socket	
  =	
  io.connect('http://localhost');	
  
	
  	
  socket.on('scores',	
  function	
  (data)	
  {	
  
	
  	
  	
  	
  console.log(data);	
  
	
  	
  	
  	
  socket.emit('score	
  event',	
  {	
  my:	
  'data'	
  });	
  
	
  	
  });	
  
</script>
Live Scoring & Real-Time Updates
• The node template places a placeholder with a token for
the score block
• Browser makes asynchronous HTTP request to the scoring
server, establishing a web socket between server and client
• Score changes are pushed to browser without polling or
updating the page
• Drupal is unaware of the content of that placeholder
Edge-Side Includes
Varnish and many CDNs established the ESI specification.
!
Allows for fragments of content to reside elsewhere and be
assembled on the Edge.
!
Allows for mixing of unauthenticated (cached) content with
authenticated elements (i.e., “Welcome user”).
ESI Fragments
• Register a menu callback in Drupal to generate content
with an abbreviated callback
• /esi/user/welcome/f1667cc8f3f9f55a
• <esi:include src=“/path/to/callback”/>
• <esi:include src="http://example.com/some/path"/>
Drupal is not your Website
Authenticated/Unauthenticated
• Authenticated traffic bypasses much of the caching layer
• Use ESI to provide customized service on an otherwise
unauthenticated, cached page
• An unauthenticated page is heavily cached; ESI provides
the customization users are used to seeing
Drupal Modules and Resources
• drupal.org/project/cdn
• drupal.org/project/esi
• socket.io
• www.varnish-cache.org/docs/3.0/tutorial/esi.html
• www.akamai.com/html/support/esi.html
Questions?
Software Architect
Email: thagler@phase2technology.com
Tobby Hagler
Twitter: @thagler
Drupal.org: tobby
PHASE2TECHNOLOGY.COM

More Related Content

What's hot (20)

PPTX
SilverStripe From a Developer's Perspective
ajshort
 
PPTX
HTML 5
Rajan Pal
 
PPTX
The SharePoint & jQuery Guide
Mark Rackley
 
PDF
HTML5 & CSS3 refresher for mobile apps
Ivano Malavolta
 
PPTX
Local storage
Adam Crabtree
 
PPT
Krug Fat Client
Paul Klipp
 
PPTX
SharePoint Performance
Jeroen Schoenmakers
 
PDF
Building faster websites: web performance with WordPress
Johannes Siipola
 
PPT
Websites Unlimited - Pay Monthly Websites
websiteunlimited
 
PDF
Angular - Chapter 6 - Firebase Integration
WebStackAcademy
 
PDF
facebook architecture for 600M users
Jongyoon Choi
 
PDF
Local Storage for Web Applications
Markku Laine
 
PPTX
Break out of The Box - Part 2
Karl-Henry Martinsson
 
PPTX
HTML5 Local Storage
Lior Zamir
 
PDF
AD102 - Break out of the Box
Karl-Henry Martinsson
 
PPTX
IBM Connect 2016 - Break out of the Box
Karl-Henry Martinsson
 
PPTX
SEF2013 - A jQuery Primer for SharePoint
Marc D Anderson
 
PDF
jmp206 - Lotus Domino Web Services Jumpstart
Bill Buchan
 
PDF
Become a Better Developer with Debugging Techniques for Drupal (and more!)
Acquia
 
PDF
Group meeting: Polaris - Faster Page Loads Using Fine-grained Dependency Trac...
Yu-Hsin Hung
 
SilverStripe From a Developer's Perspective
ajshort
 
HTML 5
Rajan Pal
 
The SharePoint & jQuery Guide
Mark Rackley
 
HTML5 & CSS3 refresher for mobile apps
Ivano Malavolta
 
Local storage
Adam Crabtree
 
Krug Fat Client
Paul Klipp
 
SharePoint Performance
Jeroen Schoenmakers
 
Building faster websites: web performance with WordPress
Johannes Siipola
 
Websites Unlimited - Pay Monthly Websites
websiteunlimited
 
Angular - Chapter 6 - Firebase Integration
WebStackAcademy
 
facebook architecture for 600M users
Jongyoon Choi
 
Local Storage for Web Applications
Markku Laine
 
Break out of The Box - Part 2
Karl-Henry Martinsson
 
HTML5 Local Storage
Lior Zamir
 
AD102 - Break out of the Box
Karl-Henry Martinsson
 
IBM Connect 2016 - Break out of the Box
Karl-Henry Martinsson
 
SEF2013 - A jQuery Primer for SharePoint
Marc D Anderson
 
jmp206 - Lotus Domino Web Services Jumpstart
Bill Buchan
 
Become a Better Developer with Debugging Techniques for Drupal (and more!)
Acquia
 
Group meeting: Polaris - Faster Page Loads Using Fine-grained Dependency Trac...
Yu-Hsin Hung
 

Similar to Drupal is not your Website (20)

PDF
Intro to drupal_7_architecture
Hai Vo Hoang
 
PDF
Showcasing drupal
Opevel
 
PPTX
Drupal as a data server
Jay Friendly
 
PPTX
An Introduction to Drupal & How to Use It by Sanket Jain
Innoraft
 
PPTX
72d5drupal
Mahesh Sherkar
 
PPTX
Drupal Overview For Techies
Robert Carr
 
ODP
Drupal in 5mins + Previewing Drupal 8.x
Wong Hoi Sing Edison
 
PDF
Amplexor Drupal for the Enterprise seminar - evaluating Drupal for the Enterp...
Amplexor
 
PDF
Drupal Recipe
hernanibf
 
PDF
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
PDF
Bringing Interactivity to Your Drupal Site with Node.js Integration
Acquia
 
PPTX
Drupal Introduction - Why enterprises should use it
Manish Garg
 
KEY
Drupal 6 JavaScript and jQuery
Matt Butcher
 
PDF
Plain english guide to drupal 8 criticals
Angela Byron
 
PPTX
Why Enterprises Choose Drupal for Futuristic Web App Development?
Helios Solutions
 
PDF
Drupal refcard
PrinceGuru MS
 
PDF
With Drupal Your Website is an API
Charlie Morris
 
PPT
DrupalCon Chicago 2011 ReportBack (11/03/30 - G. Bedford)
DrupalCape
 
PDF
Introduction to Drupal
Tom Deryckere
 
PDF
Not Only Drupal
mcantelon
 
Intro to drupal_7_architecture
Hai Vo Hoang
 
Showcasing drupal
Opevel
 
Drupal as a data server
Jay Friendly
 
An Introduction to Drupal & How to Use It by Sanket Jain
Innoraft
 
72d5drupal
Mahesh Sherkar
 
Drupal Overview For Techies
Robert Carr
 
Drupal in 5mins + Previewing Drupal 8.x
Wong Hoi Sing Edison
 
Amplexor Drupal for the Enterprise seminar - evaluating Drupal for the Enterp...
Amplexor
 
Drupal Recipe
hernanibf
 
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
Bringing Interactivity to Your Drupal Site with Node.js Integration
Acquia
 
Drupal Introduction - Why enterprises should use it
Manish Garg
 
Drupal 6 JavaScript and jQuery
Matt Butcher
 
Plain english guide to drupal 8 criticals
Angela Byron
 
Why Enterprises Choose Drupal for Futuristic Web App Development?
Helios Solutions
 
Drupal refcard
PrinceGuru MS
 
With Drupal Your Website is an API
Charlie Morris
 
DrupalCon Chicago 2011 ReportBack (11/03/30 - G. Bedford)
DrupalCape
 
Introduction to Drupal
Tom Deryckere
 
Not Only Drupal
mcantelon
 
Ad

More from Phase2 (20)

PDF
Phase2 Health and Wellness Brochure
Phase2
 
PDF
A Modern Digital Experience Platform
Phase2
 
PDF
Beyond websites: A Modern Digital Experience Platform
Phase2
 
PDF
Omnichannel For Government
Phase2
 
PDF
Bad camp2016 Release Management On Live Websites
Phase2
 
PDF
A FUTURE-FOCUSED DIGITAL PLATFORM WITH DRUPAL 8
Phase2
 
PPTX
The Future of Digital Storytelling - Phase2 Talk
Phase2
 
PDF
Site building with end user in mind
Phase2
 
PDF
Fields, entities, lists, oh my!
Phase2
 
PDF
Performance Profiling Tools and Tricks
Phase2
 
PDF
NORTH CAROLINA Open Source, OpenPublic, OpenShift
Phase2
 
PDF
Drupal 8 for Enterprise: D8 in a Changing Digital Landscape
Phase2
 
PDF
Riding the Drupal Wave: The Future for Drupal and Open Source Content Manage...
Phase2
 
PDF
Site Building with the End User in Mind
Phase2
 
PDF
The Yes, No, and Maybe of "Can We Build That With Drupal?"
Phase2
 
PDF
User Testing For Humanitarian ID App
Phase2
 
PDF
Redhat.com: An Architectural Case Study
Phase2
 
PDF
The New Design Workflow
Phase2
 
PDF
Drupal 8, Don’t Be Late (Enterprise Orgs, We’re Looking at You)
Phase2
 
PDF
Memorial Sloan Kettering: Adventures in Drupal 8
Phase2
 
Phase2 Health and Wellness Brochure
Phase2
 
A Modern Digital Experience Platform
Phase2
 
Beyond websites: A Modern Digital Experience Platform
Phase2
 
Omnichannel For Government
Phase2
 
Bad camp2016 Release Management On Live Websites
Phase2
 
A FUTURE-FOCUSED DIGITAL PLATFORM WITH DRUPAL 8
Phase2
 
The Future of Digital Storytelling - Phase2 Talk
Phase2
 
Site building with end user in mind
Phase2
 
Fields, entities, lists, oh my!
Phase2
 
Performance Profiling Tools and Tricks
Phase2
 
NORTH CAROLINA Open Source, OpenPublic, OpenShift
Phase2
 
Drupal 8 for Enterprise: D8 in a Changing Digital Landscape
Phase2
 
Riding the Drupal Wave: The Future for Drupal and Open Source Content Manage...
Phase2
 
Site Building with the End User in Mind
Phase2
 
The Yes, No, and Maybe of "Can We Build That With Drupal?"
Phase2
 
User Testing For Humanitarian ID App
Phase2
 
Redhat.com: An Architectural Case Study
Phase2
 
The New Design Workflow
Phase2
 
Drupal 8, Don’t Be Late (Enterprise Orgs, We’re Looking at You)
Phase2
 
Memorial Sloan Kettering: Adventures in Drupal 8
Phase2
 
Ad

Recently uploaded (20)

PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
July Patch Tuesday
Ivanti
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
July Patch Tuesday
Ivanti
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 

Drupal is not your Website

  • 2. Drupal is Not Your Web Site ! Develop for high-scale, fragmented sites DrupalCon Austin - June 3, 2014 ! Tobby Hagler @thagler d.o: tobby
  • 3. Presumptions and Expectations • Beginner level discussion, but still familiar and comfortable with site building with Drupal • Passing familiarity with topics presented here, but not significant experience with them • Will be an overview of concepts; an introduction designed to lead you to thinking about your site build approach • Suggested modules
  • 4. Overview • What a Web site really is • How does Drupal fit into the stack that is your Web site? • Other elements of a Web site to consider • Removing things from Drupal to help overall performance • Real-time content updates on your Web site
  • 6. A location connected to the Internet that maintains one or more pages on the World Wide Web. Merriam-Webster “ ”
  • 8. Common Page Assembly Methods • Static (flat) HTML files • Server-side Includes (SSI) • CGI • Scripting and template languages • Content Management Systems (CMS) • Edge-side Includes (ESI)
  • 9. Server-Side Includes (SSI) • HTTP/Web server parses files (.shtml) for commands • <!--#include file="/path/to/file.txt" --> • <!--#include virtual="menu.cgi" —> • <!--#if expr="${SomeBoolean}" --> … <!--#endif -->
  • 10. ;
  • 12. Drupal Theming & Page Assembly • User makes request for a Web page “/node/123” • Drupal bootstrap process begins, callback function executed, hooks invoked, etc. • Content is dynamically rendered to HTML via theme functions * • HTML document is delivered to the user * Ignore cache and other steps for now
  • 13. How the page is ultimately generated, it matters not to the Web browser requesting the page. In the end, it will receive HTML that it will parse, and make requests for additional elements (images, CSS files, JavaScript files, etc.) and deliver the final presentation to the end user.
  • 14. How the page is ultimately generated, it matters not to the Web browser requesting the page. In the end, it will receive HTML that it will parse, and make requests for additional elements (images, CSS files, JavaScript files, etc.) and deliver the final presentation to the end user. ! What the browser displays may be different than the HTML it receives. i.e., JavaScript may hide content or make additional requests for more things to display.
  • 15. Why is Drupal not my Web site?
  • 16. A Typical Drupal Implementation • Nodes contain articles, stories, blog posts, etc. • Blocks provide ancillary content that can be repeated • Views lists pages of related or similar content • Panels allows the arrangement of content pieces • Theme provides design and user experience
  • 17. So Drupal is my Web site? With this simple implementation, what Drupal generates and the HTML documents the user receives are essentially the same. ! ! 2 + 2 = 4 and 2 + x* = 4 are also essentially the same. * Where x = 2
  • 19. Document delivery costs • Static HTML costs (practically) nothing, file I/O; difficult to maintain (even with a CMS) • SSI is largely file I/O and somewhat CPU intensive • PHP code execution is memory intensive and CPU bound • MySQL uses CPU, memory, and I/O heavily • Resources limit the number of simultaneous users (traffic)
  • 20. PHP execution is costly Having the Web server invoke PHP, and having PHP retrieve content and render a full HTML document on every page request is resource intensive. ! Drupal employs a number of caching systems and optimization to reduce server stress.
  • 22. Scaling Drupal To be able to handle traffic, introduce multiple Web servers that all serve Drupal’s content. ! Employ various caching schemes in front and behind Drupal.
  • 24. Drupal is the back-end When behind Varnish or a CDN, the (unauthenticated) Web user does not interact with Drupal directly*. The request is handled by delivering content from cache, returning the same HTML document sent to any other user requesting the same path. Drupal does not and cannot return something different since the request is not sent to Drupal. * Assuming cache is already primed
  • 26. Drupal and Fragmentation Drupal is already doing enough. It doesn’t need to do additional processing to fetch content and ingest it. Offload some of the work to other services. It’s OK to decentralize. ! Use 3rd-party services because that’s where the content originates. ! Sometimes Drupal isn’t the best thing to handle all of your content
  • 27. Assembling Fragments • Client-side Javascript • AJAX • WebSockets • Varnish/CDN Edge-Side Includes • Include content into a Varnish-cached page
  • 29. Typical 3rd-Party Content • User comments (Facebook, Disqus, LiveFyre) • Twitter • Real-time scores or standings • Web pages hosted on legacy systems • Breaking news alerts • Analytics
  • 31. Externally Hosted Comments Most commenting systems provide code (HTML, JavaScript, etc.) that can be placed on the page. ! Simply adding code and simple references to the parent page are all that is needed. Drupal is otherwise unaware of that content.
  • 32. Implementing Real-Time Updates • WebSocket specification • WebSocket JavaScript Interface • Socket.IO — Node.js project • JavaScript framework and WebSocket API with long polling • Jetty — Java servlets and HTTP server
  • 33. Live Scoring & Real-Time Updates
  • 34. Socket.io <script  src="/socket.io/socket.io.js"></script>   <script>      var  socket  =  io.connect('http://localhost');      socket.on('scores',  function  (data)  {          console.log(data);          socket.emit('score  event',  {  my:  'data'  });      });   </script>
  • 35. Live Scoring & Real-Time Updates • The node template places a placeholder with a token for the score block • Browser makes asynchronous HTTP request to the scoring server, establishing a web socket between server and client • Score changes are pushed to browser without polling or updating the page • Drupal is unaware of the content of that placeholder
  • 36. Edge-Side Includes Varnish and many CDNs established the ESI specification. ! Allows for fragments of content to reside elsewhere and be assembled on the Edge. ! Allows for mixing of unauthenticated (cached) content with authenticated elements (i.e., “Welcome user”).
  • 37. ESI Fragments • Register a menu callback in Drupal to generate content with an abbreviated callback • /esi/user/welcome/f1667cc8f3f9f55a • <esi:include src=“/path/to/callback”/> • <esi:include src="http://example.com/some/path"/>
  • 39. Authenticated/Unauthenticated • Authenticated traffic bypasses much of the caching layer • Use ESI to provide customized service on an otherwise unauthenticated, cached page • An unauthenticated page is heavily cached; ESI provides the customization users are used to seeing
  • 40. Drupal Modules and Resources • drupal.org/project/cdn • drupal.org/project/esi • socket.io • www.varnish-cache.org/docs/3.0/tutorial/esi.html • www.akamai.com/html/support/esi.html
  • 42. Software Architect Email: [email protected] Tobby Hagler Twitter: @thagler Drupal.org: tobby