Skip to main content

Guidance for Price and Promotion Engine on AWS

Overview

This Guidance helps you simplify the complexity of promotions, including stacked promotions, coupons, free shipping, loyalty discounts, buy-one-get-one, flash sales, and many others. In their search for the best deal, consumers compare promotions across many stores. However, marketers are often limited to the few promotion types supported by their website or point of sale, preventing them from maximizing marketing investments. 

This Guidance takes transaction context (such as a customer’s loyalty tier, time of day, and a list of possible promotions) and determines how to best apply promotions to a cart of products. With this Guidance, marketing teams can provide consumers with more targeted promotions for maximized discounts to increase sales and brand loyalty. 

How it works

These technical details feature an architecture diagram to illustrate how to effectively use this solution. The architecture diagram shows the key components and their interactions, providing an overview of the architecture's structure and functionality step-by-step.

Well-Architected Pillars

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.

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.

Read the Operational Excellence whitepaper 

For public facing services (such as the Web App UI), Amazon Cognito secures access to the core applications and services. This includes role-based access controls. Provisioned API endpoints are also secured with private Amazon Virtual Private Cloud (Amazon VPC) endpoints for secure communication from a customer’s on-premises systems or within the AWS Cloud.

Read the Security whitepaper 

AWS managed services are designed to span multiple Availability Zones. Other services, such as Aurora and Amazon DAX, can also be deployed over multiple Availability Zones. In case of failure in one Availability Zone, you can deploy services to another Availability Zone to continue operations.

Read the Reliability whitepaper 

This architecture follows a serverless-first approach and uses managed services. Serverless services and managed services are scalable and highly available. For example, recalculating the price on each 'Add to cart' event is critical to the performance of the Price Engine API. Lambda handles this task, which allows you to run code without provisioning or managing servers or containers. You simply upload your code, and Lambda manages running and scaling your code. 

Read the Performance Efficiency whitepaper 

This architecture ingests data from source systems, and data moving in the inbound direction is generally uncharged. Data transfer for AWS Transfer for SFTP file transfers, API Gateway requests, and Amazon AppFlow data is charged as per publicly documented service pricing. To minimize transfer charges, all other data is kept within the AWS Region for processing.

Read the Cost Optimization whitepaper 

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.

Read the Sustainability whitepaper 

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.