Magento 2 Cloudflare integration hosted on AWS with load balancer
- Update the nameserver of Cloudflare where your domain is hosted.
- create target group
- create load balancer
- create redirect for load balancer in cliudflare
Functional Components are to be validated before making it live, Please comment on things I missed to create a global list.
In webpages, Most of the bandwidth is taken by images and it affects webpage performance drastically. So, Image optimization becomes important for the best performance. I will not turn the wheel again. I will add the most important information here only.
Concept: You can take a look at it here.
Solution: You can use a free extension from mageplaza here.
Documentation: Documentation of extension can be found here
Concept: You can take a look at it here.
Solution: The solution is itself in the above link. You can add height and width for images.
Concept: Always use images with good compression and the size of images should be as per requirement.
Solution: Optimizer, Converter
Concept: This concept is used when there is a no of small images. we combine them in one image to reduce no of requests on the server.
Solution: you can find a good tool to create CSS sprite images here
Concept: You can take look at it here
Solution: The solution is itself in the above link. You can add height and width for images.
You can find more information for speed optimization here
For custom requests, you can contact me here
Magento 2 is a pretty complex application. If you did not configure it correctly you will find it very slow. To do performance optimization, I am adding some pointers here as follows.
Magento 2 has added lot of new module and feature as compared to magento1x. It has some hidden dependencies. so, it slowdown magento 2 store. It is most common list of modules which generally do not required. You can add and remove module as per your requirement. You just need to add these modules in composer.json file and then run composer update.
"replace": {
"magento/module-authorizenet": "*",
"magento/module-google-adwords": "*",
"magento/module-send-friend": "*",
"magento/module-signifyd": "*",
"magento/module-bundle-graph-ql": "*",
"magento/module-catalog-graph-ql": "*",
"magento/module-catalog-inventory-graph-ql": "*",
"magento/module-catalog-url-rewrite-graph-ql": "*",
"magento/module-cms-graph-ql": "*",
"magento/module-cms-url-rewrite-graph-ql": "*",
"magento/module-inventory-graph-ql": "*",
"magento/module-configurable-product-graph-ql": "*",
"magento/module-customer-graph-ql": "*",
"magento/module-downloadable-graph-ql": "*",
"magento/module-eav-graph-ql": "*",
"magento/module-graph-ql": "*",
"magento/module-grouped-product-graph-ql": "*",
"magento/module-quote-graph-ql": "*",
"magento/module-store-graph-ql": "*",
"magento/module-swatches-graph-ql": "*",
"magento/module-tax-graph-ql": "*",
"magento/module-url-rewrite-graph-ql": "*",
"magento/module-weee-graph-ql": "*",
"temando/module-shipping-m2": "*",
"dotmailer/dotmailer-magento2-extension": "*",
"klarna/module-kp": "*",
"klarna/module-ordermanagement": "*",
"klarna/module-core": "*",
"amzn/amazon-pay-sdk-php": "*",
"amzn/amazon-pay-and-login-with-amazon-core-module": "*",
"amzn/login-with-amazon-module": "*",
"amzn/amazon-pay-module": "*",
"vertex/module-tax": "*",
"vertex/sdk": "*",
"yotpo/magento2-module-yotpo-reviews": "*"
},