This Guidance helps sellers perform content localization and accurate translations so they can adapt their content for a global audience. Amazon Translate allows ecommerce and marketplace retailers to translate millions of product titles, descriptions, and interactions between customers and sellers. In a global economy with customers around the world, localization can improve customer interactions and increase transactions. By automating content translation at scale, this Guidance minimizes the manual work involved with maintaining localized content.
Architecture Diagram
[Architecture diagram description]
Step 1
This architecture relies on external data sources and covers two common systems: Production Information Management (PIM) and Content Management Systems (CMS).
The architecture assumes a webhook integration, where the destination API is built using Amazon API Gateway. The ProductChanged AWS Lambda function dissects the incoming payload and transforms it into a consistent message format.
Step 2
Amazon EventBridge is the central event bus that decouples domains and systems. EventBridge will pass events between systems. For example, the ProductChanged event will be pushed into EventBridge. The translation workflow built with AWS Step Functions can be a target with a specific filter.
Step 3
Using Step Functions, the translation workflow will kick off the process of automated translation with Amazon Translate, a neural machine translation service.
Forward and backward translations provide a mechanism to compare and generate an accuracy score for the translation. Based on this score, the translation event can then be sent for further human review.
Step 4
The translation management user interface (UI) is a web application for translators to conduct administrative activities. It allows translators to override translations that are deemed low quality or to confirm quality of content so it can be published automatically.
Amazon Cognito provides authentication to the application. Amazon CloudFront provides a content distribution network to give your global translator workforce quick and secure access to the interface.
AWS Amplify provides the tooling to help build and ship changes to this application. API Gateway allows an endpoint to interact with dynamic data. Lambda helps with powering the user interface and kicks off the continuation of the Step Functions workflow.
Step 5
Translators that help verify and improve content quality come from a globally distributed workforce. A scalable reporting suite using Amazon QuickSight provides insights to translators around the world.
The suite also helps the review team confirm that the content pipeline is in good condition and the backlog is manageable. The reporting suite provides an opportunity to collect customer feedback on the translation quality of the content in addition to product information for further quality review.
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
AWS managed services emit their own set of metrics into Amazon CloudWatch, where you can monitor services for errors and set up CloudWatch alarm notifications.
-
Security
This solution uses Amazon Cognito to authenticate translators prior to providing them with access to the translation management application. For data ingress from the PIM and CMS, this architecture will provide flexible authentication options including API keys, AWS Identity and Access Management (IAM) if the source system supports it, and customer authentication against a different identity provider using Lambda authorizers.
-
Reliability
This Guidance is based on an event-driven, distributed architecture. It uses a Step Functions workflow that provides built-in retry capabilities. Additionally, it uses EventBridge to support built-in retry capability for up to 24 hours with exponential back-off, a pattern where the wait time is increased exponentially after every retry attempt, and jitter, which adds some amount of randomness to the backoff to spread the retries around in time.
-
Performance Efficiency
Serverless technologies feature automatic scaling. If there is an influx of changes in the translation content, the architecture will scale accordingly and make changes in near real time.
-
Cost Optimization
This architecture follows a serverless-first approach. Where possible, serverless services scale based on the number of content changes, which means costs will scale based on service usage.
-
Sustainability
AWS managed services scale up and down according to business requirements and traffic, making them more sustainable than on-premises architectures that do not offer on-demand scalability. Additionally, serverless components of this architecture automate the process of infrastructure management.
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.