SlideShare a Scribd company logo
1 of 12
Download to read offline
AGUIDEFORECOMMERCESITEOWNERS.
Magento2
OptimizationGuide
ProvenMethodologyForFasterOrderProcessingAnd
PageLoadSpeedForYourMagento2Store.
MagentoCRO|MagentoDev
www.TheCommerceShop.com
3400PeachtreeRoad,NESuite939,
Atlanta,GA30326.
hello@thecommerceshop.com
(404)547-6474
SOLUTION PARTNER
BUSINESS
Contents
01
Contents
ExecutiveSummary
TheMagento2Architecture
OptimizingMagento2ForEnhancedPerformance
UnderstandHowTheFourDifferentArchitecturalLayersMakes
Magento2Better
01
02
03
04
05
Conclusion
References
06
07
EnableFlatCatalog
ConfigureMySQL
EnableCSSAndJSOptimization
EnableVarnishCacheInsteadOfTheBuiltInFull-PageCache
SetUpAContentDeliveryNetwork
KeepYourMagento2SiteUpdated
05.1
05.2
05.3
05.4
05.5
05.6
TheCommerceShop2017.Allrightsreserved.©
Allrightsreserved.Nopartofthispublicationtextmaybeuploadedorpostedonlinewithoutthepriorwrittenpermissionofthepublisher.
Forpermissionrequests,writetothepublisher,addressed“Attention:PermissionsRequest,”tohello@thecommerceshop.com
ExecutiveSummary
TheMagentoeCommerceplatformpowersabout26%oftotaleCommercestores,
makingitoneofthelargestplatformspreferredbyonlinestoreowners.Withthe
evolutionoftheeCommerceecosystem,theneedforanenhancedfeatureset
pushedtheMagentoteamtodevelopMagento2.It'soneofthemostpromising
eCommerceplatformswiththebestback-endthatpromisesfastersetupand
betteronlineshoppingexperience.Thiswhitepaperaimstooptimizeandscale
yourMagento2storesetup.
TheMagento2Architecture
TheMagentoeCommerceplatformisPHPbased.TheZendFrameworkandOOP
(ObjectOrientedProgramming)rootsallowyoutocompletelycustomizeyour
entireeCommercestoretoprovideauniqueshoppingexperiencetoyourcustom-
ers.Thebiggestadvantageofthisapproachisthatithasanindustrystandard
codingstructurealongwithindependentlayersofbusinesslogictoprovideany
necessarywebfunctionality.
Basically,theMa-
gentoframework
hasstructuredrule
onhowyoureCom-
mercewebsite
shouldbehave.The
libraryaccessesthe
modulesthrough
HTTPrequestsand
routesthemappro-
priately,ensuring
security.
Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop.3
>
>
Layouts
JQUERY
RequireJS
Service
interface
Data
interfaces
Resource
Models
MySQL
ServiceContracts
PHP/
StandardsPHPextensionsPSR-0PSR-1PSR-2PSR-3PSR-4
Magento
PHPcode
MagentoLib
(LESS,JS,etc)
Developer
Dependencies
Zend,Symfony
3rdParty
Libraries
ServiceLayer
PresentationLayer
DomainLayer
PersistenceLayer
Dependson/CallsIncludes
WebAPI
Endpoints
Models
Templates
Blocks
Controllers
MagentoUILib
CSS LESS
WebUsers ServiceConsumers
Source:devdocs.magento.com
UnderstandHowTheFour
DifferentArchitecturalLayers
MakesMagento2Better
Magento2
Performance
Metrics
Therobustandorganizedarchitec-
tureisthebackboneformaking
Magento2flexibleandfast.The
layersareplacedstrategically
alongwiththerightcomponentsto
secureandprocessrequestsfaster.
Thepresentationlayerhelpsinte-
gratevarioustoolsthroughAPIre-
quests.
Ifyouhavecurrentlyupgraded
yourMagento1storeormigrated
fromanyothereCommerceplat-
formtoaMagento2,youwillwit-
nessthefollowingchanges:
Abilitytoprocess
39%moreorders
perhour
Almost66%increasein
theadd-to-cartserver
responsetime
Improvedserver
responsetimeforcatalog
browsing
--------------------
--------------------
--------------------
b
51%faster
checkouttimes
39% 66%51%
Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop.4
OptimizingMagento2For
EnhancedPerformance
EnableFlatCatalog
WithMagento2takingovertheeCommerceworldbyastorm,wewantedtocreate
aseamlessshoppingexperienceforshoppersandboosttheperformanceofthe
Magento2eCommercestoretohandlemoreordersandtraffic.Wehavecreateda
listofthingstodotomakeiteasierforyou.
Speedupyourproductcollectionbymanagingthecatalogdatathrough
manytablesusingtheEntityAttributeValue(EAV).Whentheflatcatalogis
enabled,thetablesareaddedwhenthereisaneedfornecessarydata
relatedtoproductorcategory.
Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop
1.LogintotheMagentobackendpanel 2.OntheAdminpanel,clickonStores
3.UndertheSettingssection,selectConfiguration 4.Ontheleftpanel,choose
CatalogtoentertheStorefrontsection 5.ChooseYesinUseFlatCatalogCategoryfield
.. ..
>>
>> >>
>>
.5
ConfigureMySQL
ThishelpsinorganizingyourMySQLdatabasetofetcheCommerceinfor-
mationfaster.ToloadasingleMagentopage,aseriesofdatabasequeries
getsengaged.Youcanstartprocessingordersfasterbyoptimizingyourda-
tabasestructure.
Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop
1
2
3
4
5
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 2M
1
2
3
4
$ musql -u mysqluser -p magento_database_name
$ mysql> SHOW VARIABLES;
1
2
3
php_value memory_limit 128M
.6
EnableCSSAndJSOptimization
CSSandJSaretwoofthemostimportantelementsthatframeyour
front-endstructure.Unfortunately,theyarethebiggestreasonyoureCom-
mercewebsiteslowsdown.
.7Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop
ThebestwaytospeedupyourMagento2storesisbyoptimizingCSSand
JS.
.. .>>
>> >>
.. .>>
>> >>
.8Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop
Cachingistheprocessofboostingpageloadspeedbystoringinformation
whenthecustomerfirstloadsthewebsite.Magento2hasabuiltincaching
mechanismthatworksgreat,butVarnishisasuperioroptionasitcaches
staticfilesanddoesn'tslowdownthedatabaseorfilesystemread/write
functionality.
EnableVarnishCacheInsteadOfThe
BuiltInFull-PageCache
...
>>
.>>
>>
>> .>>
Accesslist
Field Description
Backendhost
Backendport
Enterthefullyqualifiedhostname,IPaddress,orClasslessInter-DomainRout-
ing(CIDR) notationIPaddressrangeforwhichtoinvalidatecontent.
Moreinformation
Originserver'slistenport.
Imagecourtesy:MagentoDevdocs
.9Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop
AContentDeliveryNetwork(CDN)isadistributedserverthatdeliversthe
sitecontenttoshoppersbasedontheirgeographicalregion.Basically,the
webpagesloadfasterasthemultipleserversbreakdowntheloadbetween
them.
ChoosingYourPerfectCDN
ItsmandatoryyouchoosetheperfectCDNthathassupportedgeographical
proximitytogetmaximummileage.OurMagentoexpertscanalsohelpyou
findtherightCDNproviderstomaximizesiteloadingspeed.
SetUpAContentDeliveryNetwork
EnterthehttpsURLtoprovideafastershoppingexperienceforyoureCommercecustomers.
.>>
8.It'srecommendedyousetthevalueofaclpurgeasthe
IPaddressoftheVarnishhostwhenyouopen
default.vcl.
Forexample,
aclpurge{"localhost";}
9.Now,restartVarnish.
Thisenablesthecacheableassets,andaresavedandloadedintheclient'sbrowserthroughVarnish.
1.servicevarnishrestart
2.servicehttpdrestart
.10Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop
Magento2functionsthroughvarioustablesandwhencodefunctionsrun
frequentlytofetchinformationregardingproducts,thereareplentyoflogs
thatgetcreatedintheprocess.Frequentdatabaselogcleanupisneededto
clearthediskspaceandfoldersize,andmaintainoptimalperformance.
PerformADatabaseCleanUp
It'sessentialyourMagento2websiteisupdatedatalltimes.TheMagento2
andmoduleupdatescontainessentialfixesneededtooptimizevarious
functionalityofyoureCommercewebsite,apartfromsecurityandbugfixes.
KeepYourMagento2SiteUpdated
.>>
.>>
.>>
.11Magento2OptimizationMethodologyForFasterOrderProcessingAndPageLoadSpeed|TheCommerceShop
Conclusion
TheseMagento2optimizationtechniquesaimtoimproveyoureCommerceweb-
siteloadingspeedbyupto2seconds.Thisissignificant,asuserstendtoleave
sitesthatloadslowerthan3seconds.Googlesearchresultsalsofavorfasterload-
ingsites.Buildtheperfectoptimizedonlineshoppingexperienceneededto
engagebetterwithyourshoppers.
References
IfyouarelookingforcustomeCommercedevelopmentservicetoimprovethe
customer'son-siteexperience,ourcertifiedMagentodeveloperscanhelp.Talkto
usifyouwanttobuildaseamlessshoppingexperienceforcustomerswithperfect
navigation,easyproductdiscoveryfeaturealongwithasmoothcheckoutpro-
cess.
Theinformationtransmitted,includingattachments,isintendedonlyfortheperson(s)orentitytowhichitisaddressedandmaycontainconfiden-
tialand/orprivilegedmaterial.Anyreview,re-transmission,disseminationorotheruseof,ortakingofanyactioninrelianceuponthisinformation
bypersonsorentitiesotherthantheintendedrecipientisprohibited.Ifyoureceivedthisinerror,pleasecontactthesenderanddestroyanycopies
ofthisinformation.
©TheCommerceShop2017.AllRightsReserved.
3400PeachtreeRoad,NESuite939,Atlanta,GA30326
Phone:(404)547-6474
Email:hello@thecommerceshop.com
9415CulverBlvd,CulverCity,CA90232
Phone:(310)279-6584
Email:hello@thecommerceshop.com

More Related Content

Similar to Magento 2 Optimization Guide

Zepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_FinalZepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_Final
Max Pronko
 

Similar to Magento 2 Optimization Guide (20)

Magento SEO Tips and Tricks
Magento SEO Tips and TricksMagento SEO Tips and Tricks
Magento SEO Tips and Tricks
 
10 Point checklist to boost your Magento store
10 Point checklist to boost your Magento store10 Point checklist to boost your Magento store
10 Point checklist to boost your Magento store
 
The biggest stores on Magento
The biggest stores on MagentoThe biggest stores on Magento
The biggest stores on Magento
 
Magento (Adobe Commerce) Upgrade Checklist for Store Owners.pdf
Magento (Adobe Commerce) Upgrade Checklist for Store Owners.pdfMagento (Adobe Commerce) Upgrade Checklist for Store Owners.pdf
Magento (Adobe Commerce) Upgrade Checklist for Store Owners.pdf
 
Google Page Insights and Magento 2 — Sergey Nezbritskiy | Magento Meetup Onli...
Google Page Insights and Magento 2 — Sergey Nezbritskiy | Magento Meetup Onli...Google Page Insights and Magento 2 — Sergey Nezbritskiy | Magento Meetup Onli...
Google Page Insights and Magento 2 — Sergey Nezbritskiy | Magento Meetup Onli...
 
Google Tag Manager - 5 years. What have we learned?
Google Tag Manager - 5 years. What have we learned?Google Tag Manager - 5 years. What have we learned?
Google Tag Manager - 5 years. What have we learned?
 
Magento 2 Migration Issues: Top 7 Most Common Challenges to Consider
Magento 2 Migration Issues: Top 7 Most Common Challenges to ConsiderMagento 2 Migration Issues: Top 7 Most Common Challenges to Consider
Magento 2 Migration Issues: Top 7 Most Common Challenges to Consider
 
How Google Tag Manager changes everything you knew about website analytics
How Google Tag Manager changes everything you knew about website analyticsHow Google Tag Manager changes everything you knew about website analytics
How Google Tag Manager changes everything you knew about website analytics
 
Shamit Khemka detailed Importance of customization in magento portals
Shamit Khemka detailed Importance of customization in magento portalsShamit Khemka detailed Importance of customization in magento portals
Shamit Khemka detailed Importance of customization in magento portals
 
Forget Magento 1; Try Magento 2
Forget Magento 1; Try Magento 2Forget Magento 1; Try Magento 2
Forget Magento 1; Try Magento 2
 
Magento for newbies by IdeatoLife - Design+Code; ArabNet Beirut 2015
Magento for newbies by IdeatoLife - Design+Code; ArabNet Beirut 2015Magento for newbies by IdeatoLife - Design+Code; ArabNet Beirut 2015
Magento for newbies by IdeatoLife - Design+Code; ArabNet Beirut 2015
 
A-Concise-Guide-to-Magento-Development-Services 1.pdf
A-Concise-Guide-to-Magento-Development-Services 1.pdfA-Concise-Guide-to-Magento-Development-Services 1.pdf
A-Concise-Guide-to-Magento-Development-Services 1.pdf
 
Magento for-performance- v01
Magento for-performance- v01Magento for-performance- v01
Magento for-performance- v01
 
Magento Performance
Magento PerformanceMagento Performance
Magento Performance
 
Example SEO audit
Example SEO auditExample SEO audit
Example SEO audit
 
Zepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_FinalZepplin_Pronko_Magento_Festival Hall 1_Final
Zepplin_Pronko_Magento_Festival Hall 1_Final
 
Magento (Adobe Commerce) to WooCommerce  Migration Checklist for Store Owners...
Magento (Adobe Commerce) to WooCommerce  Migration Checklist for Store Owners...Magento (Adobe Commerce) to WooCommerce  Migration Checklist for Store Owners...
Magento (Adobe Commerce) to WooCommerce  Migration Checklist for Store Owners...
 
Magento 2.1 ee content staging
Magento 2.1 ee content stagingMagento 2.1 ee content staging
Magento 2.1 ee content staging
 
Eugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
Eugene Shaksuvarov - Tuning Magento 2 for Maximum PerformanceEugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
Eugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
 
Optimizing Magento E-Commerce Sites for Increased Sales and Customer satisfac...
Optimizing Magento E-Commerce Sites for Increased Sales and Customer satisfac...Optimizing Magento E-Commerce Sites for Increased Sales and Customer satisfac...
Optimizing Magento E-Commerce Sites for Increased Sales and Customer satisfac...
 

More from Innopplinc

More from Innopplinc (10)

How to create an eCommerce homepage that multiplies conversions
How to create an eCommerce homepage that multiplies conversionsHow to create an eCommerce homepage that multiplies conversions
How to create an eCommerce homepage that multiplies conversions
 
Engaging buyers and increasing ROI with Smart Digital Marketing Using Drupal 8
Engaging buyers and increasing ROI with Smart Digital Marketing Using Drupal 8Engaging buyers and increasing ROI with Smart Digital Marketing Using Drupal 8
Engaging buyers and increasing ROI with Smart Digital Marketing Using Drupal 8
 
Redesigning Magento eCommerce site for improving SEO and user experience
Redesigning Magento eCommerce site for improving SEO and user experienceRedesigning Magento eCommerce site for improving SEO and user experience
Redesigning Magento eCommerce site for improving SEO and user experience
 
Custom Magento Solution For Enhancing Operational Prowess & SEO
Custom Magento Solution For Enhancing Operational Prowess & SEOCustom Magento Solution For Enhancing Operational Prowess & SEO
Custom Magento Solution For Enhancing Operational Prowess & SEO
 
Why Choose Magento For Your Online Business?
Why Choose Magento For Your Online Business?Why Choose Magento For Your Online Business?
Why Choose Magento For Your Online Business?
 
Government - Administrative office of the courts Georgia | Drupalpartners - C...
Government - Administrative office of the courts Georgia | Drupalpartners - C...Government - Administrative office of the courts Georgia | Drupalpartners - C...
Government - Administrative office of the courts Georgia | Drupalpartners - C...
 
MIGRATING YOUR GOVERNMENT WEBSITE TO DRUPAL 8
MIGRATING YOUR GOVERNMENT WEBSITE TO DRUPAL 8MIGRATING YOUR GOVERNMENT WEBSITE TO DRUPAL 8
MIGRATING YOUR GOVERNMENT WEBSITE TO DRUPAL 8
 
Are you with the right iphone app development company
Are you with the right iphone app development companyAre you with the right iphone app development company
Are you with the right iphone app development company
 
The State Of Mobility In Healthcare - Webinar
The State Of Mobility In Healthcare - WebinarThe State Of Mobility In Healthcare - Webinar
The State Of Mobility In Healthcare - Webinar
 
12 steps that will lead you to data driven mobile app development
12 steps that will lead you to data driven mobile app development12 steps that will lead you to data driven mobile app development
12 steps that will lead you to data driven mobile app development
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Magento 2 Optimization Guide