

# Deploy a Prebid Server to manage ad auction requests with AWS infrastructure
<a name="solution-overview"></a>

Guidance for Deploying a Prebid Server on AWS helps customers deploy and operate Prebid Server, an open source solution for real-time ad monetization, in their own Amazon Web Services (AWS) environment. The solution enables customers with ad-supported websites to achieve scaled access to advertising revenue through a community of more than 180\$1 advertising platforms. Customers achieve full control over decision logic and access to transaction data, and realize AWS benefits like global scalability and pay-as-you-go economics. This solution hosts the Prebid Server executable program in a cost-effective way for a variety of request loads—​5,000-100,000 requests per second (RPS)--and captures operational and transaction logs from each Prebid Server container for analysis and reporting.

This implementation guide provides an overview of Guidance for Deploying a Prebid Server on AWS, its reference architecture and components, considerations for planning the deployment, configuration steps for deploying the solution to the AWS Cloud.

This guide is intended for solution architects, business decision makers, DevOps engineers, data scientists, and cloud professionals who want to implement Guidance for Deploying a Prebid Server on AWS in their environment.

Use this navigation table to quickly find answers to these questions:


| If you want to . . . | Read . . . | 
| --- | --- | 
|  Know the cost for running this solution. The baseline estimated cost for running this solution in the US East (N. Virginia) Region is approximately **\$1241.50 a month** when no load is running on the solution. See the Cost section for several impression-per-second and RPS scenarios.  |   [Cost](cost1.md)   | 
|  Understand the security considerations for this solution.  |   [Security](security-1.md)   | 
|  Know how to plan for quotas for this solution.  |   [Quotas](quotas.md)   | 
|  Know which AWS Regions are supported for this solution.  |   [Supported AWS Regions](plan-your-deployment.md#supported-aws-regions)   | 
|  Access the source code and use the AWS Cloud Development Kit (AWS CDK) to deploy the solution.  |   [GitHub repository](https://github.com/aws-solutions-library-samples/prebid-server-deployment-on-aws)   | 
|  Access the Prebid Server open source project.  |   [GitHub repository](https://github.com/prebid/prebid-server-java)   | 

# Features and benefits
<a name="features-and-benefits"></a>

Guidance for Deploying a Prebid Server on AWS provides the following features:

 **Prebid Server purpose built for AWS infrastructure** 

Deploy Prebid Server in a scalable and cost-efficient manner. It provides the end-to-end infrastructure to host a Prebid Server with production-grade availability, scalability, and low-latency for a variety of request loads (documented up to 100,000 RPS).

 **Built-in observability** 

Observability is available throughout the infrastructure. This includes operational resource metrics, alarms, runtime logs, and business metrics.

 **Decrease time to market** 

This solution uses a deployment template to establish the necessary infrastructure to get customers running within days instead of months or weeks.

 **Ownership of all operational and business data** 

All data from Prebid Server metrics extract, transform, and load (ETL) to AWS Glue Data Catalog for seamless integration with various clients, such as Amazon Athena, Amazon Redshift, and Amazon SageMaker AI.

 **AWS RTB Fabric integration** 

Optionally route bid requests through [AWS RTB Fabric](https://aws.amazon.com/rtb-fabric/), a private network purpose-built for real-time bidding. RTB Fabric provides low-latency, cost-optimized connectivity between Prebid Server and bidder endpoints without traversing the public internet.

 **Quick start with bidder simulator** 

Deploy an optional bidder simulator stack to quickly test and validate your Prebid Server deployment without needing to configure external bidders. The simulator supports banner and video ad formats, including VAST instream video.

 **Demo website** 

Demo website with Prebid.js integration can be used to validate the end-to-end flow from prebid.js through Prebid Server to the bidder simulator.

# Use cases
<a name="use-cases"></a>

 **Move ad-supported workflows to a dedicated, server-to-server (S2S) architecture** 

S2S header bidding moves auction processing and decisioning to dedicated servers, which improves page performance and protects advertising revenue.

 **Reduce operational complexity** 

Focus more on business insights and less on operating geographically distributed, high-volume, low-latency architectures — a challenging task even for well-resourced organizations.

 **Create complete infrastructure** 

This solution uses a deployment template to establish the necessary infrastructure, including load balancing, distribution, VPC resources, firewalls, data pipelines, and a container with the latest version of Prebid Server to get customers running within days instead of months or weeks.

# Concepts and definitions
<a name="concepts-and-definitions"></a>

This section describes key concepts and defines terminology specific to this solution:

 **custom headers** 

Amazon CloudFront can be configured to add custom headers, which enable you to send and gather information from your origin that you don’t get with typical viewer requests.

 **header bidding** 

Header bidding is a process that enables publishers to capture bids for ad units from demand sources that might otherwise have been missed. By implementing header bidding, a publisher can gather bids from multiple sources that will then compete directly with bids from the ad server

 **Prebid Server** 

Prebid Server is an open source solution for server-to-server header bidding.

 **wrapper** 

A wrapper is a type of Software Development Kit (SDK) for advertising. A wrapper provides browser code to consolidate multiple header bidding partners into a unified framework. It simplifies the management of ad placements and real-time bidding across different ad networks, optimizing ad revenues by allowing simultaneous bids on inventory.

**Note**  
For a general reference of AWS terms, see the [AWS Glossary](https://docs.aws.amazon.com/general/latest/gr/glos-chap.html).