preloder

Amazon Web Services for Magento 2

Prev Next

Amazon Web Services (AWS) provide reach set of cloud-computing services to setup, build and run scalable environment. I use AWS as a main hosting provider to run Magento 2 websites. I decided to share a minimum set of services to build the Magento 2 infrastructure.

Amazon EC2

First and most widely used service is Amazon EC2 or Amazon Elastic Compute Cloud. It can be configured as a web service with the resizable compute capacity in the cloud. It is a very flexible and easy to launch cloud servers. I use an EC2 for running Magento 2 with Apache or Nginx HTTP web server. In addition to EC2 with Magento 2, I use Varnish server which is configured to accept all incoming requests to the web server.

Amazon RDS

Next service I use is Amazon RDS or Amazon Relational Database Service. Amazon RDS makes it easy to set up, operate, and scale MySQL deployments in the cloud. It also supports Multi-AZ deployments to enhance database availability by creating a Replica in a different Availability Zones and dedicated hardware. AWS will automatically switch to a replicate database in case of primary one goes down.

Amazon ElastiCache

Amazon ElastiCache service is useful when you want to setup Magento 2 sessions and cache in a in-memory storage. Amazon ElastiCache supports Redis and Memcached memory object systems. For Magento 2 it is recommended to use Redis storage.

AWS provides Free-tier (free of charge) package which allows to create an account and play with services before deciding to but it.

Amazon CloudFront

Amazon CloudFront service provides edge-locations for the static content distribution. It is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users. You can also read the Improve Magento 2 performance with AWS CloudFront post with detailed step-by-step instructions on how to configure CDN for Magento 2.

Useful Links

There is benchmarking article shows a comparison between an Aurora vs MySQL databases for Amazon RDS. Have a look before deciding which database to use.

Official Magento 2 documentation provides support in setting Redis as a cache and session storage for a Magento 2 server.

If you would like to understand better how to setup and work with Redis in DigitalOcean blog you may read a great article about it.

The question of the Week

Do you use other than AWS hosting providers on your projects? Is it good, would you recommend me to try and write about it?

Send your reply to blog@maxpronko.com or leave a comment below.

Thank you for being part of The Devletter Community.

Keep coding,

Max

Max with his team of Magento enthusiasts won the Best Magento 1 to Magento 2 Migration Award at the Magento Imagine 2017. As CEO at Pronko Consulting, he is actively working with Magento 2, delivering superior customer experience. As one of the most famous developers on a market and in the Magento Community, he launched Magento 2 blog, Magento DevChannel – YouTube channel in 2017 where he shares his knowledge, experience and the best practices in the Magento field.

Posted on Aug 24, 2016

The Devletter

Subscribe to my Magento 2 tips and tutorials content.
Every week I send an interesting email directly to your inbox

Related Posts

Show
Hide
Pre-order the Magento 2 payment integration course TODAY PRE-ORDER
Hello. Add your message here.