SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
16.12.2015 - Martin Wolfert - https://wp-loft.de
Speedup your WordPress with Nginx ANd HTTP/2
OR: How to get a performant WordPress installation without real caching plugins.
About …
kid of the german „Babyboomer-Generation"
lateral entrant in IT at 1-th of January 2000
means: 15 years of Linux- & WebHosting (LAMP) knowledge
since 1998, own profession in WebDesign & PHP-Programming
WordPress user since version 2.6
Panograf (360° photography)
main profession: Operations-Architekt, working for 1&1 Internet SE 

in Karlsruhe
Big fan of north-west france & and their coasts
Redwine & Scottish Single-Malt Whisky (from Islay) gourmet
HTTP/2 Evolution
HTTP/1.0 HTTP/1.1 SPDY HTTP/2
Source: 1)
Just to mention it
Latency is the Problem

Not bandwidth!
Except video-streaming
HTTP/1.x versus HTTP/2
Source: 2)
HTTP/1.1 uses many connections between client and server. As a modern browser could
handle only 4 - 8 parallel connections on a chosen target domain. So, loading of e.g. a WordPress
Page could be really painfull.
HTTP/2, The better Protocol
(Based on the actual HTTP/2 implementation from OPenSource-NGinx 1.9.7 *)
Single, Persistent Connection : Only one connection is used for each web page. The same
connection is used as long as the web page is open.

Multiplexing : Requests and replies are multiplexed onto separate streams within the single
connection. When the connection is stable, “head of line blocking” is eliminated.

Header Compression and Binary Encoding : Headers are compressed using a new, separate, 

secure standard -HPACK compression. It reduces the amount of data crossing the network.
Header information is sent in compact, binary format, not as plain text.

SSL Encryption - HTTP/2 allows you to add SSL support with, in some cases, no performance
penalty, making your site more secure.
* lacks of Server-Push and Prioritization
HTTP/2, Streaming
Three components (ascending):
Frames
Messages
Streams
Source: 3)
HTTP/2 Multiplexing
Source: 4)
Interleave multiple requests in parallel without blocking on any one
Interleave multiple responses in parallel without blocking on any one
Use a single connection to deliver multiple requests and responses in parallel
No old HTTP/1.1 stuff like e.g. image sprites or domain sharding
HTTP/2, Waterfall-diagramm
HTTP/2, Browser-Support
Source: 5)
This little „OR“ in the Subline
The „old“ stuff:

- Handling HTTP&HTTPS Port

- Nginx-Layer

- Varnish-Layer

- Apache-PHP-Layer
The „cool“ state-of-the-art stuff:

- only HTTPS (HTTP/2) Port

- Nginx-Layer

- HHVM / PHP-FPM - Layer

- Redis-Server
Really Without Cache Plugin?
Source: 6)
To get a bit more speed „on top“, i have a
Redis-Server running on my VPS. 



Redis is a key value store who can act as
„persistent object cache“ to store e.g. 

WordPress database queries.



So … we can start discussing, if Redis works
as a cache or not :). And we could also discuss, if the Redis Object Cache
Plugin, to bind WordPress to the Redis-Server, is a typical cache plugin or
not.
My Optimizations in addition
to HTTP/2
Source: 6)
HHVM instead of PHP-FPM (with Opcache)
Fast CGI Caching, based on Nginx
Google’s mod_pagespeed, based on Nginx
- CSS & JS - minify
- DNS Prefetch
- Async Google-Analytics
- Image deduplication
- etc.
GEOIP-blocking
Fail2ban based IP-blocking
A Resulting Speed Test

(Tested with webpagetest.org)
Source: 6)
Additional Informations
https://kinsta.com/blog/the-definitive-php-7-final-version-hhvm-benchmark/
https://letsencrypt.org/
A bit self-promotion :-)



So, if you need a 360° Panorama-picture, visit my website on

http://panoramaatelier.de
For WordPress-Support and my WordPress-Blog look at
https://wp-loft.de
My personal Blog, you can find on

https://blog.lichttraeumer.de
THANK YOU !
Picture-Sources
1): „Human evolution scheme (2)“ von Human_evolution_scheme.svg: M. Gardederivative work: Gerbil (talk) -
Human_evolution_scheme.svg. Lizenziert unter CC BY-SA 3.0 über Wikimedia Commons - https://commons.wikimedia.org/wiki/
File:Human_evolution_scheme_(2).jpg#/media/File:Human_evolution_scheme_(2).jpg
2 & 3): https://www.nginx.com/wp-content/uploads/2015/09/NGINX_HTTP2_White_Paper_v4.pdf
4): http://chimera.labs.oreilly.com/books/1230000000545/ch12.html
5) http://caniuse.com/#feat=http2
6) http://www.asterix-comics.de/pics/gallisches-dorf.jpg

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to HTTP/2
Introduction to HTTP/2Introduction to HTTP/2
Introduction to HTTP/2Ido Flatow
 
Introduction to HTTP/2
Introduction to HTTP/2Introduction to HTTP/2
Introduction to HTTP/2Ido Flatow
 
maXbox starter46 work with Wine
maXbox starter46 work with WinemaXbox starter46 work with Wine
maXbox starter46 work with WineMax Kleiner
 
HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战Jerry Qu
 
HTTP/2 Introduction
HTTP/2 IntroductionHTTP/2 Introduction
HTTP/2 IntroductionWalter Liu
 
How WP Pipes changes the Wordpress world
How WP Pipes changes the Wordpress worldHow WP Pipes changes the Wordpress world
How WP Pipes changes the Wordpress worldThong Tran
 
HTTP 2.0 – What do I need to know?
HTTP 2.0 – What do I need to know? HTTP 2.0 – What do I need to know?
HTTP 2.0 – What do I need to know? Sigma Software
 
Alex carcea, radu macovei a story of how java script joined the big league
Alex carcea, radu macovei   a story of how java script joined the big leagueAlex carcea, radu macovei   a story of how java script joined the big league
Alex carcea, radu macovei a story of how java script joined the big leagueCodecamp Romania
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xamppJin Castor
 
Installation of wordpress
Installation of wordpressInstallation of wordpress
Installation of wordpressHAINIRMALRAJ
 
T3DD12 Caching with Varnish
T3DD12 Caching with VarnishT3DD12 Caching with Varnish
T3DD12 Caching with VarnishAOE
 
Ruby Installation
Ruby InstallationRuby Installation
Ruby InstallationSHC
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionSammy Fung
 
HTTP at your local BigCo
HTTP at your local BigCoHTTP at your local BigCo
HTTP at your local BigCopgriess
 
Super performing websites with TYPO3 and Varnish
Super performing websites with TYPO3 and VarnishSuper performing websites with TYPO3 and Varnish
Super performing websites with TYPO3 and Varnishchristianjul
 
Wp migration
Wp migrationWp migration
Wp migrationcstrommer
 

Was ist angesagt? (19)

Introduction to HTTP/2
Introduction to HTTP/2Introduction to HTTP/2
Introduction to HTTP/2
 
Websocket 101 in Python
Websocket 101 in PythonWebsocket 101 in Python
Websocket 101 in Python
 
Introduction to HTTP/2
Introduction to HTTP/2Introduction to HTTP/2
Introduction to HTTP/2
 
maXbox starter46 work with Wine
maXbox starter46 work with WinemaXbox starter46 work with Wine
maXbox starter46 work with Wine
 
HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战
 
HTTP/2 Introduction
HTTP/2 IntroductionHTTP/2 Introduction
HTTP/2 Introduction
 
How WP Pipes changes the Wordpress world
How WP Pipes changes the Wordpress worldHow WP Pipes changes the Wordpress world
How WP Pipes changes the Wordpress world
 
HTTP 2.0 – What do I need to know?
HTTP 2.0 – What do I need to know? HTTP 2.0 – What do I need to know?
HTTP 2.0 – What do I need to know?
 
Alex carcea, radu macovei a story of how java script joined the big league
Alex carcea, radu macovei   a story of how java script joined the big leagueAlex carcea, radu macovei   a story of how java script joined the big league
Alex carcea, radu macovei a story of how java script joined the big league
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xampp
 
Installation of wordpress
Installation of wordpressInstallation of wordpress
Installation of wordpress
 
T3DD12 Caching with Varnish
T3DD12 Caching with VarnishT3DD12 Caching with Varnish
T3DD12 Caching with Varnish
 
Ruby Installation
Ruby InstallationRuby Installation
Ruby Installation
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server Edition
 
Php
PhpPhp
Php
 
Shiny New HTTP Shit
Shiny New HTTP ShitShiny New HTTP Shit
Shiny New HTTP Shit
 
HTTP at your local BigCo
HTTP at your local BigCoHTTP at your local BigCo
HTTP at your local BigCo
 
Super performing websites with TYPO3 and Varnish
Super performing websites with TYPO3 and VarnishSuper performing websites with TYPO3 and Varnish
Super performing websites with TYPO3 and Varnish
 
Wp migration
Wp migrationWp migration
Wp migration
 

Andere mochten auch

Monique Koepke / Typografie im Web
Monique Koepke / Typografie im WebMonique Koepke / Typografie im Web
Monique Koepke / Typografie im Webwpmeetupka
 
Einführung ins WP REST API
Einführung ins WP REST APIEinführung ins WP REST API
Einführung ins WP REST APIwpmeetupka
 
Ist deine Webseite wirklich Sicher?
Ist deine Webseite wirklich Sicher?Ist deine Webseite wirklich Sicher?
Ist deine Webseite wirklich Sicher?Martin Wolfert
 
AutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - Plesk
AutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - PleskAutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - Plesk
AutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - PleskJan Löffler
 
WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...
WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...
WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...Jan Löffler
 
PoP - “Platform of Platforms”: Framework for building Single-Page Application...
PoP - “Platform of Platforms”: Framework for building Single-Page Application...PoP - “Platform of Platforms”: Framework for building Single-Page Application...
PoP - “Platform of Platforms”: Framework for building Single-Page Application...Leonardo Losoviz
 
Speedup your site mit Caching
Speedup your site mit CachingSpeedup your site mit Caching
Speedup your site mit Cachingwpmeetupka
 
Computación
ComputaciónComputación
Computaciónmerfax
 
Educación a distancia
Educación a distanciaEducación a distancia
Educación a distanciadanielas1994
 
PPS Online Presentation Pygmy Marmoset-Cindy Henry
PPS Online Presentation Pygmy Marmoset-Cindy HenryPPS Online Presentation Pygmy Marmoset-Cindy Henry
PPS Online Presentation Pygmy Marmoset-Cindy Henrychenry2316
 
Progress Monitoring Interpretation
Progress Monitoring InterpretationProgress Monitoring Interpretation
Progress Monitoring InterpretationMadison Hopkins
 
Bảng hướng dẫn thành lập văn phòng công chứng
Bảng hướng dẫn thành lập văn phòng công chứngBảng hướng dẫn thành lập văn phòng công chứng
Bảng hướng dẫn thành lập văn phòng công chứngmaihuyhung
 

Andere mochten auch (17)

Monique Koepke / Typografie im Web
Monique Koepke / Typografie im WebMonique Koepke / Typografie im Web
Monique Koepke / Typografie im Web
 
Einführung ins WP REST API
Einführung ins WP REST APIEinführung ins WP REST API
Einführung ins WP REST API
 
Ist deine Webseite wirklich Sicher?
Ist deine Webseite wirklich Sicher?Ist deine Webseite wirklich Sicher?
Ist deine Webseite wirklich Sicher?
 
AutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - Plesk
AutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - PleskAutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - Plesk
AutoScaling WordPress with Docker & AWS - WordPress Meetup Karlsruhe - Plesk
 
WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...
WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...
WordPress Meetup Karlsruhe Plesk 2016 - Die Veränderung der Web Entwicklung -...
 
PoP - “Platform of Platforms”: Framework for building Single-Page Application...
PoP - “Platform of Platforms”: Framework for building Single-Page Application...PoP - “Platform of Platforms”: Framework for building Single-Page Application...
PoP - “Platform of Platforms”: Framework for building Single-Page Application...
 
Speedup your site mit Caching
Speedup your site mit CachingSpeedup your site mit Caching
Speedup your site mit Caching
 
Computación
ComputaciónComputación
Computación
 
Macroeconomia
MacroeconomiaMacroeconomia
Macroeconomia
 
INTERRACIALITY
INTERRACIALITYINTERRACIALITY
INTERRACIALITY
 
Educación a distancia
Educación a distanciaEducación a distancia
Educación a distancia
 
PPS Online Presentation Pygmy Marmoset-Cindy Henry
PPS Online Presentation Pygmy Marmoset-Cindy HenryPPS Online Presentation Pygmy Marmoset-Cindy Henry
PPS Online Presentation Pygmy Marmoset-Cindy Henry
 
Tesi
TesiTesi
Tesi
 
Progress Monitoring Interpretation
Progress Monitoring InterpretationProgress Monitoring Interpretation
Progress Monitoring Interpretation
 
Bảng hướng dẫn thành lập văn phòng công chứng
Bảng hướng dẫn thành lập văn phòng công chứngBảng hướng dẫn thành lập văn phòng công chứng
Bảng hướng dẫn thành lập văn phòng công chứng
 
Academy_Portfolio_Zulfikar
Academy_Portfolio_ZulfikarAcademy_Portfolio_Zulfikar
Academy_Portfolio_Zulfikar
 
Manual specialization
Manual specializationManual specialization
Manual specialization
 

Ähnlich wie Speedup your WordPress mit Nginx und HTTP/2

Introducing HTTP/2
Introducing HTTP/2Introducing HTTP/2
Introducing HTTP/2Ido Flatow
 
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017Codemotion
 
The Case for HTTP/2 - EpicFEL Sept 2015
The Case for HTTP/2 - EpicFEL Sept 2015The Case for HTTP/2 - EpicFEL Sept 2015
The Case for HTTP/2 - EpicFEL Sept 2015Andy Davies
 
HTTP/2 : why upgrading the web? - apidays Paris
HTTP/2 : why upgrading the web? - apidays ParisHTTP/2 : why upgrading the web? - apidays Paris
HTTP/2 : why upgrading the web? - apidays ParisQuentin Adam
 
HTML5, HTTP2, and You 1.1
HTML5, HTTP2, and You 1.1HTML5, HTTP2, and You 1.1
HTML5, HTTP2, and You 1.1Daniel Austin
 
HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011Alessandro Nadalin
 
HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?Alessandro Nadalin
 
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San FranciscoHTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San FranciscoAlessandro Nadalin
 
Computer network (10)
Computer network (10)Computer network (10)
Computer network (10)NYversity
 
Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...
Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...
Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...Ontico
 
Advanced Web Hosting
Advanced Web HostingAdvanced Web Hosting
Advanced Web HostingOVHcloud
 
Push the web with HTML5
Push the web with HTML5Push the web with HTML5
Push the web with HTML5Stoyan Zhekov
 
Surviving Slashdot
Surviving SlashdotSurviving Slashdot
Surviving Slashdotjohnbuckman
 
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”Valent Mustamin
 
21 Www Web Services
21 Www Web Services21 Www Web Services
21 Www Web Servicesroyans
 

Ähnlich wie Speedup your WordPress mit Nginx und HTTP/2 (20)

Introducing HTTP/2
Introducing HTTP/2Introducing HTTP/2
Introducing HTTP/2
 
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
 
HTTP/2: What's new?
HTTP/2: What's new? HTTP/2: What's new?
HTTP/2: What's new?
 
The Case for HTTP/2 - EpicFEL Sept 2015
The Case for HTTP/2 - EpicFEL Sept 2015The Case for HTTP/2 - EpicFEL Sept 2015
The Case for HTTP/2 - EpicFEL Sept 2015
 
HTTP/2 : why upgrading the web? - apidays Paris
HTTP/2 : why upgrading the web? - apidays ParisHTTP/2 : why upgrading the web? - apidays Paris
HTTP/2 : why upgrading the web? - apidays Paris
 
5-WebServers.ppt
5-WebServers.ppt5-WebServers.ppt
5-WebServers.ppt
 
5-WebServers.ppt
5-WebServers.ppt5-WebServers.ppt
5-WebServers.ppt
 
Http2
Http2Http2
Http2
 
HTML5, HTTP2, and You 1.1
HTML5, HTTP2, and You 1.1HTML5, HTTP2, and You 1.1
HTML5, HTTP2, and You 1.1
 
HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011
 
HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?
 
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San FranciscoHTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
 
Computer network (10)
Computer network (10)Computer network (10)
Computer network (10)
 
Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...
Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...
Как Web-акселератор акселерирует ваш сайт / Александр Крижановский (Tempesta ...
 
Advanced Web Hosting
Advanced Web HostingAdvanced Web Hosting
Advanced Web Hosting
 
Push the web with HTML5
Push the web with HTML5Push the web with HTML5
Push the web with HTML5
 
Surviving Slashdot
Surviving SlashdotSurviving Slashdot
Surviving Slashdot
 
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
 
21 Www Web Services
21 Www Web Services21 Www Web Services
21 Www Web Services
 
Apache web service
Apache web serviceApache web service
Apache web service
 

Kürzlich hochgeladen

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 

Kürzlich hochgeladen (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 

Speedup your WordPress mit Nginx und HTTP/2

  • 1. 16.12.2015 - Martin Wolfert - https://wp-loft.de Speedup your WordPress with Nginx ANd HTTP/2 OR: How to get a performant WordPress installation without real caching plugins.
  • 2. About … kid of the german „Babyboomer-Generation" lateral entrant in IT at 1-th of January 2000 means: 15 years of Linux- & WebHosting (LAMP) knowledge since 1998, own profession in WebDesign & PHP-Programming WordPress user since version 2.6 Panograf (360° photography) main profession: Operations-Architekt, working for 1&1 Internet SE 
 in Karlsruhe Big fan of north-west france & and their coasts Redwine & Scottish Single-Malt Whisky (from Islay) gourmet
  • 3. HTTP/2 Evolution HTTP/1.0 HTTP/1.1 SPDY HTTP/2 Source: 1)
  • 4. Just to mention it Latency is the Problem Not bandwidth! Except video-streaming
  • 5. HTTP/1.x versus HTTP/2 Source: 2) HTTP/1.1 uses many connections between client and server. As a modern browser could handle only 4 - 8 parallel connections on a chosen target domain. So, loading of e.g. a WordPress Page could be really painfull.
  • 6. HTTP/2, The better Protocol
(Based on the actual HTTP/2 implementation from OPenSource-NGinx 1.9.7 *) Single, Persistent Connection : Only one connection is used for each web page. The same connection is used as long as the web page is open.
 Multiplexing : Requests and replies are multiplexed onto separate streams within the single connection. When the connection is stable, “head of line blocking” is eliminated.
 Header Compression and Binary Encoding : Headers are compressed using a new, separate, 
 secure standard -HPACK compression. It reduces the amount of data crossing the network. Header information is sent in compact, binary format, not as plain text.
 SSL Encryption - HTTP/2 allows you to add SSL support with, in some cases, no performance penalty, making your site more secure. * lacks of Server-Push and Prioritization
  • 7. HTTP/2, Streaming Three components (ascending): Frames Messages Streams Source: 3)
  • 8. HTTP/2 Multiplexing Source: 4) Interleave multiple requests in parallel without blocking on any one Interleave multiple responses in parallel without blocking on any one Use a single connection to deliver multiple requests and responses in parallel No old HTTP/1.1 stuff like e.g. image sprites or domain sharding
  • 11. This little „OR“ in the Subline The „old“ stuff:
 - Handling HTTP&HTTPS Port
 - Nginx-Layer
 - Varnish-Layer
 - Apache-PHP-Layer The „cool“ state-of-the-art stuff:
 - only HTTPS (HTTP/2) Port
 - Nginx-Layer
 - HHVM / PHP-FPM - Layer
 - Redis-Server
  • 12. Really Without Cache Plugin? Source: 6) To get a bit more speed „on top“, i have a Redis-Server running on my VPS. 
 
 Redis is a key value store who can act as „persistent object cache“ to store e.g. 
 WordPress database queries.
 
 So … we can start discussing, if Redis works as a cache or not :). And we could also discuss, if the Redis Object Cache Plugin, to bind WordPress to the Redis-Server, is a typical cache plugin or not.
  • 13. My Optimizations in addition to HTTP/2 Source: 6) HHVM instead of PHP-FPM (with Opcache) Fast CGI Caching, based on Nginx Google’s mod_pagespeed, based on Nginx - CSS & JS - minify - DNS Prefetch - Async Google-Analytics - Image deduplication - etc. GEOIP-blocking Fail2ban based IP-blocking
  • 14. A Resulting Speed Test
 (Tested with webpagetest.org) Source: 6)
  • 15. Additional Informations https://kinsta.com/blog/the-definitive-php-7-final-version-hhvm-benchmark/ https://letsencrypt.org/ A bit self-promotion :-)
 
 So, if you need a 360° Panorama-picture, visit my website on
 http://panoramaatelier.de For WordPress-Support and my WordPress-Blog look at https://wp-loft.de My personal Blog, you can find on
 https://blog.lichttraeumer.de
  • 17. Picture-Sources 1): „Human evolution scheme (2)“ von Human_evolution_scheme.svg: M. Gardederivative work: Gerbil (talk) - Human_evolution_scheme.svg. Lizenziert unter CC BY-SA 3.0 über Wikimedia Commons - https://commons.wikimedia.org/wiki/ File:Human_evolution_scheme_(2).jpg#/media/File:Human_evolution_scheme_(2).jpg 2 & 3): https://www.nginx.com/wp-content/uploads/2015/09/NGINX_HTTP2_White_Paper_v4.pdf 4): http://chimera.labs.oreilly.com/books/1230000000545/ch12.html 5) http://caniuse.com/#feat=http2 6) http://www.asterix-comics.de/pics/gallisches-dorf.jpg