[SEO Subhead]
This Guidance shows how you can build an ecommerce experience around the microservices-based, API-first, cloud-native software as a service, and headless (MACH) approach of commercetools. By integrating AWS services with commercetools, you can extend functionality to address common retail use cases. This integration can help you make quicker decisions related to brand design, helping you provide a consistent and seamless experience for your customers.
Please note: [Disclaimer]
Architecture Diagram
[Architecture diagram description]
Step 1
Host the static parts of your brand-specific frontend (such as web pages and images) on Amazon Simple Storage Service (Amazon S3), delivered through Amazon CloudFront with low latency.
Step 2
Your business logic runs in containers using Amazon Elastic Container Service (Amazon ECS) or AWS Lambda to run your code in serverless functions.
Step 3
Integrate commercetools APIs with your business logic to gain flexibility when composing your shopping experience.
Step 4
Store additional business data in databases (SQL or NoSQL) or integrate other systems in your IT landscape, such as a content management system (CMS), product information management (PIM) system, or customer relationship management (CRM) system.
Step 5
Integrate asynchronously with events from commercetools (such as new orders) and use Amazon EventBridge to distribute those events to your applications.
Step 6
Amazon Simple Queue Service (Amazon SQS) receives events from EventBridge and queues them for processing by downstream services.
Step 7
By storing commercetools events in an Amazon S3-powered data lake ingested through Amazon Kinesis Data Firehose, you can make events accessible for visualizations, forecasting, and analyzing usage patterns.
Step 8
Use data such as previous buying behavior to tailor customers’ shopping experience with Amazon Personalize.
Step 9
Use Amazon Connect as your contact center to allow your customers to connect with you through phone or chat. By accessing the same business logic and data in commercetools, you can provide a consistent and unified experience for customers.
Well-Architected Pillars
The AWS Well-Architected Framework helps you understand the pros and cons of the decisions you make when building systems in the cloud. The six pillars of the Framework allow you to learn architectural best practices for designing and operating reliable, secure, efficient, cost-effective, and sustainable systems. Using the AWS Well-Architected Tool, available at no charge in the AWS Management Console, you can review your workloads against these best practices by answering a set of questions for each pillar.
The architecture diagram above is an example of a Solution created with Well-Architected best practices in mind. To be fully Well-Architected, you should follow as many Well-Architected best practices as possible.
-
Operational Excellence
CloudFront, Elastic Load Balancing (ELB), Amazon S3, Amazon ECS, Lambda, Amazon DynamoDB, Amazon Personalize, Kinesis Data Firehose, EventBridge, and Amazon SQS, are all managed services, eliminating operational overhead. Using managed services helps you offload infrastructure and server maintenance to AWS.
-
Security
CloudFront improves website security with traffic encryption and access controls. DynamoDB and Amazon S3 encrypt data at rest, and you have the flexibility to select the encryption key. Encrypting data at rest helps ensure that only authorized individuals can access data, preventing data leakage, unauthorized access, and physical theft.
-
Reliability
ELB routes traffic requests from the store’s web and mobile application to healthy containers in Amazon ECS. Amazon ECS auto scales containers across multiple Availability Zones for high availability. Combining ELB with Amazon ECS reduces the chance of application failure for your business logic, meaning that users can browse the web and mobile storefront without encountering downtime errors.
-
Performance Efficiency
Amazon ECS scales containers running your business logic on demand, helping ensure that only the necessary compute resources are allocated. CloudFront serves requests through the closest edge location of the requester to reduce network latencies. This architecture allows you to sustain peak traffic (often a challenge in ecommerce) while serving requests through the closest edge location of the requester to reduce network latencies.
-
Cost Optimization
Where possible, CloudFront eliminates the frequency of data access or microservice invocations through caching, resulting in lower compute costs. Amazon ECS reduces costs with efficient compute resource auto scaling by using AWS Auto Scaling. CloudFront caching enables Amazon ECS automatic application scaling to be cost efficient by provisioning the minimal amount of compute and allowing you to pay only for the resources you use.
-
Sustainability
Amazon ECS supports AWS Graviton processors, which use up to 60 percent less energy than comparable Amazon Elastic Compute Cloud (Amazon EC2) instances for the same performance. To minimize your workload’s environmental impact, choose the latest Graviton processors for Amazon ECS and clean up unused data, snapshots, and backups at regular intervals.
Implementation Resources
A detailed guide is provided to experiment and use within your AWS account. Each stage of building the Guidance, including deployment, usage, and cleanup, is examined to prepare it for deployment.
The sample code is a starting point. It is industry validated, prescriptive but not definitive, and a peek under the hood to help you begin.
Related Content
[Title]
Disclaimer
The sample code; software libraries; command line tools; proofs of concept; templates; or other related technology (including any of the foregoing that are provided by our personnel) is provided to you as AWS Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You should not use this AWS Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances or using Amazon S3 storage.
References to third-party services or organizations in this Guidance do not imply an endorsement, sponsorship, or affiliation between Amazon or AWS and the third party. Guidance from AWS is a technical starting point, and you can customize your integration with third-party services when you deploy the architecture.