Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

20
Igor Bondarenko

Transcript of Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Page 1: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Igor Bondarenko

Page 2: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Textmaster

About Myself

• 10 years in IT

• 2 years in Magento

Development

• Head of Business

Development in Neklo

Page 3: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Textmaster

• Hello World!

Page 4: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it
Page 5: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Server for Magento 2

Page 6: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

• Amazon Web Services

• Microsoft Azure

• Openstack Cloud

• Or dedicated server

Page 7: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

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

Page 8: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Flat Categories and Products

STORES -> Configuration -> CATALOG -> Catalog -> Use Flat

Catalog Category ->“Yes”

Page 9: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

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

Page 10: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Content Delivery NetworkSTORES -> GENERAL -> Configuration -> Web -> Base URLs (Secure)

Page 11: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Caching

Page 12: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

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

Page 13: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Full Page Cache

Page 14: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Images Optimization

Page 15: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Update Indexes

Page 16: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Code Generation

magento setup:di:compile

magento setup:static-content:deploy

Page 17: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Uninstall Unused Extensions

magento module:uninstall [-c|--clear-static-content] \ {ModuleName}

Page 18: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

Magento Updates

Page 19: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

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

Page 20: Igor Bondarenko - Magento2 Performance Bottlenecks: How to avoid it

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]