Click here to load reader
Apr 16, 2017
Welcome
Magento ServerOptimization and BestPracticesNitin AgnihotriIT Security Engineer
WhyOptimizationis soImportant ?
User experience
Handle traffic
Improve your sales
Increase SEO ranking
What are theroot causes ofSpeed or LoadTime issue ?
Browser cache is notleveraged.
Application code is notoptimized.
Server resources are notenough.
Limited network bandwidth. No application caching.
How to overcome issuesregarding Resources,Bandwidth & Caching ?
IntegrateMagento with
CDN
AWS S3
Reverse proxy (NGINX orVARNISH)
What isCDN ?
Network of reverse proxyservers.
Globally distributed.
High availability.
High performance by cachingstatic content.
Reduces load time of applicationserver.
How CDN works ?
**Logos and Trademarks are owned bytheir respective owners
How to implement AWS CDNCloudfront in Magento ?
How CDN works ?
**Logos and Trademarks are owned bytheir respective owners
Lets find the proof !
AWS Cloudfront with Magento 2
**Logos and Trademarks are owned bytheir respective owners
AWS Cloudfront with Magento 2
**Logos and Trademarks are owned bytheir respective owners
What is AWSS3 ?
Amazon Simple StorageService
Make web-scale computingeasier for developers.
Unlimited storage. Centralized storage. Highly scalable, reliable and
fast Inexpensive data storage
How S3 Works
**Logos and Trademarks are owned bytheir respective owners
Benefits ofUsing S3
Create and store data inbuckets.
Download or upload yourdata in a fly.
Permissions.
Standard interfaces.
What isReverseProxy ?
Retrieve resources on behalf of aclient from one or more servers.these resources are then returned tothe client as if they originated fromthe proxy server itself.
Used as firewall to prevent attackssuch as DoS or DdoS.
Can reduce load on its originservers by caching static content.
Worked as a load balancer. SSL termination
What isVarnish ?
HTTP accelerator
Full Page Caching.
Load balancer
Only HTTP support
Can be customized by VCL.
PUT, POST, DELETE requestsare non cacheable.
Cache management and purging.
How to configure Varnishwith Magento 2?
Magento without Varnish
**Logos and Trademarks are owned bytheir respective owners
Again its time to provethe findings!
Magento without Varnish
**Logos and Trademarks are owned bytheir respective owners
Magento with Varnish
**Logos and Trademarks are owned bytheir respective owners
What isNGINX ?
Web server. Full Page Caching. Load balancer. SSL support. Customizable. Serves static content
better as compared toApache.
No purge option
NGINX VS VARNISH
Thank You
Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Slide 16Slide 17Slide 18Slide 19Slide 20Slide 21Slide 22Slide 23Slide 24Slide 25Slide 26