Personalization in Magento eCommerce on AWS for CPG
Publication date: May 20, 2021 (Diagram history)
With this architecture, you can deploy containerized Magento ecommerce software on AWS with personalization for consumer packaged goods (CPG). Product recommendations based on user behavior increase conversions and customer engagement. You use Amazon Personalize for ML-based recommendations and Amazon Elastic Kubernetes Service for container orchestration.
Magento personalization diagram
The following steps describe the architecture:
-
Amazon RouteĀ 53 provides DNS configuration.
-
AWS WAF protects Magento against common web exploits.
-
Amazon CloudFront speeds up the distribution of static and dynamic web content as a content delivery network (CDN).
-
Elastic Load Balancing (Application Load Balancer) distributes traffic across Varnish pods running in Amazon EKS through a Kubernetes ingress across multiple Availability Zones.
-
Varnish Cache runs as Kubernetes pods on Amazon EKS. The Enterprise version provides better features for cloud backends and cache-purge across dynamic hosts.
-
Magento Open Source or Commerce edition runs as Kubernetes pods on Amazon EKS. Each pod includes the Magento application, Nginx web server, and PHP.
-
Amazon Elastic Container Registry hosts the container images for both Varnish and Magento.
-
Amazon OpenSearch Service provides a managed search solution for the Magento catalog.
-
Amazon ElastiCache for Redis provides a caching layer for the database.
-
Use Amazon Aurora or Amazon RDS for the relational database. These provide high availability and multi-AZ configuration.
-
Use Amazon EFS to access shared configuration across Varnish and shared media assets across Magento pods.
-
Use the Amazon Personalize extension for Magento to export user historical data into an Amazon Simple Storage Service bucket.
-
Amazon Personalize trains on the historical data exported from Magento. It creates a custom solution and campaign as a private ML model hosted in your AWS account.
-
After activating the Amazon Personalize model, it displays product recommendations to end users. Real-time data interaction indicators let Amazon Personalize learn from user actions such as adding products to carts or wish lists.
Further reading
For additional information, see the following resources:
Diagram history
To receive updates about this reference architecture diagram, subscribe to the RSS feed.
| Change | Description | Date |
|---|---|---|
Initial publication | Reference architecture diagram first published. | May 20, 2021 |
RSS subscription requirement
To subscribe to RSS updates, you must have an RSS plugin enabled for the browser you are using.