magento meetup new delhi- magento2 speed optimization

26
Welcome

Upload: webkul-software-pvt-ltd

Post on 16-Apr-2017

139 views

Category:

Software


2 download

TRANSCRIPT

Welcome

Magento ServerOptimization and BestPractices

Nitin 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 andfast

● 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