igor bondarenko - magento2 performance bottlenecks: how to avoid it
TRANSCRIPT
Igor Bondarenko
Textmaster
About Myself
• 10 years in IT
• 2 years in Magento
Development
• Head of Business
Development in Neklo
Textmaster
• Hello World!
Server for Magento 2
• Amazon Web Services
• Microsoft Azure
• Openstack Cloud
• Or dedicated server
Dedicated server requirements
Operating systems Linux x86-64
Composer Latest stable version.
Web servers Apache 2.2 or 2.4, NGINX 1.8 (or
latest mainline version).
Database MySQL 5.6
PHP 7.0.2 or higher
SSL A valid security sertificate.
Self-signed SSL certificates are not
supported.
PayPal: Transport Layer Security
(TLS) version 1.2
Flat Categories and Products
STORES -> Configuration -> CATALOG -> Catalog -> Use Flat
Catalog Category ->“Yes”
Merge CSS and JS Files
STORES -> Configuration -
> ADVANCED -> Developer -
> JavaScript Settings
Merge JavaScript Files -> Yes
Minify JavaScript Files -> Yes
STORES -> Configuration -
> ADVANCED -> Developer -> CSS
Settings
Merge CSS Files -> Yes
Minify CSS Files -> Yes
Use CSS Preprocessors
Content Delivery NetworkSTORES -> GENERAL -> Configuration -> Web -> Base URLs (Secure)
Caching
Types of Cache
• Configuration cache
• Layout cache
• Block HTML output cache
• Collections data cache
• DDL cache
• Page cache
• Web services configuration cache
• And much more caches
Full Page Cache
Images Optimization
Update Indexes
Code Generation
magento setup:di:compile
magento setup:static-content:deploy
Uninstall Unused Extensions
magento module:uninstall [-c|--clear-static-content] \ {ModuleName}
Magento Updates
Key Success Factors
1. Use Flat Categories and Products
2. Merge CSS and JS files
3. Implement CDN for your store
4. Enable Cache
5. Optimize images
6. Do not forget about Magento Updates
SummaryLet’s sum up the key points:1. Don’t forget to enable flat products and categories to ease theMySQL queries.
2. Merge CSS and JS files to make user experience enjoyable.3. Implement CDN for your store - Magento 2 supports it out-from-
the-box.4. Have caching enabled.5. Do not overload your website with high-quality images where it is
not necessary.6. Don’t forget about your CMS updates.
Thank you for attention!
Skype: igor.bondarenko1E-mail: [email protected]