Customer Stories /  Travel & Hospitality

2025
Booking.com logo

Generating Dynamic Ads in Under 1 Second Using AWS Lambda with Booking.com

Learn how online travel agency Booking.com built an in-house on-demand creative overlay solution using AWS serverless solutions.

90%

reduction in costs

1,000+

requests processed per second

Split-second (<1″)

image delivery time

99.9%

availability

Overview

Founded in 1996, Booking.com has grown from a small Dutch startup to a global leader in digital travel. Today, the company helps millions of travelers find accommodations, flights, car rentals, taxis, and experiences in more than 200 countries. Booking.com connects with travelers by running dynamic ads across social media channels, and it needed a more efficient way to create and manage its content.

Using serverless solutions on Amazon Web Services (AWS), Booking.com built an in-house solution to generate customized advertising content at scale. This project significantly reduced operating costs while giving the company complete control over its advertising creative process. Now, Booking.com can innovate faster and create more engaging campaigns.

Dynamic Ads by Booking.com

Opportunity | Using AWS Serverless Solutions to Optimize Social Media Ads for Booking.com

Booking.com’s ad-tech team manages the company’s social media advertising campaigns, creating dynamic ads that showcase properties for potential guests. To create engaging ads, the team needs to automatically add dynamic content like prices, location details, and branded elements on top of property images. The team was using a third-party vendor for that work, but the arrangement was costly and limiting.

“We started asking ourselves: Do we want to continue using the third-party vendor, or would we get more visibility if we owned the whole solution from start to finish?” says Niharika Gupta, senior software engineer at Booking.com. “We also wanted to reduce costs, because using a third-party company for creating these overlays meant paying them millions of dollars to do this work for us.”

The third-party solution restricted how the team could design and customize ad templates, limiting its ability to test new creative approaches or quickly adapt to changing market needs. Additionally, the complex integration between systems made it difficult to monitor performance or quickly address issues when they arose. After evaluating potential alternatives, the ad-tech team realized that a serverless architecture could provide the scalability and flexibility that it was looking for while also reducing costs. Booking.com’s leadership had identified AWS as a strategic provider for its broader cloud transformation, so the ad-tech team looked to AWS services as the foundation of the new solution.

“Using AWS, we could build the whole solution as serverless,” says Gupta. “This was actually the first time my team and I thought we could build something at such a big scale using entirely serverless solutions, and all the services that AWS provides out of the box, without worrying about small configurations. That was the major reason we wanted to shift toward serverless services on AWS.”

kr_quotemark

Before, we had zero visibility. Using a managed solution on AWS, we went from zero to 100. And if things go wrong we can quickly intervene to fix it."

Niharika Gupta
Senior Software Engineer, Booking.com

Solution | Reducing Costs by 90 Percent by Switching to an In-House Solution

Booking.com set out to build a scalable image rendering service that could support thousands of requests per second with low latency and high availability. Booking.com has over 1.5 million hotels around the world available for booking, so the solution also needed to support content in multiple languages and currencies. The ad-tech team also wanted to support marketing specialists in quickly testing and optimizing creative elements of specific ads in near real time. After engaging the AWS team for architectural guidance, Booking.com developed and put its in-house solution into production in early 2024.

When a social media channel needs an image for an ad, it sends a request to Amazon CloudFront, a service that securely delivers content with low latency and high transfer speeds. An API Gateway forwards the request through Booking.com’s security layer, preventing unauthorized external access.

Then, the request activates AWS Lambda, a serverless compute service that runs code in response to events and automatically manages the compute resources. The AWS Lambda functions then retrieve the base hotel image along with the required overlay elements—such as logos, fonts, and templates—from Amazon Simple Storage Service (Amazon S3), an object storage service built to store object data everywhere. Using these components, the solution uses AWS Lambda to create the final image. The dynamic elements, such as current pricing and location information, are layered on top of the property photo. The completed image is then delivered back through Amazon CloudFront to the social media partner.

The ad-tech team relies on Amazon CloudWatch, a service that observes and monitors resources and applications on AWS, to gain complete visibility into system performance. “Before, we had zero visibility,” says Gupta. “Using a managed solution on AWS, we went from zero to 100. And if things go wrong we can quickly intervene to fix it.”

Each feed contains 1.5 million hotel listings with 10 images each, and Booking.com manages 200 different feeds for up to 10 social media partners. Despite this volume, the solution maintains impressive performance: It processes over 1,000 requests per second and delivers images in less than 1 second on average, with 99.9 percent availability. Because Booking.com can automatically scale based on demand, the company pays only for what it uses. That efficiency, combined with the removal of third-party fees, reduced costs by 90 percent.

Architecture Diagram

Booking.com image-rendering solution architecture diagram

Booking.com image-rendering solution architecture diagram

Outcome | Accelerating Innovation Through Complete Creative Control

By bringing creative overlay generation in house, Booking.com can innovate faster with ad content. Marketing teams can rapidly test new creative approaches and optimize campaigns without the constraints of a third-party service. The solution’s robust backend is highly reusable, so the ad-tech team can seamlessly adapt it to support various campaign types and creative elements. Other teams across Booking.com have integrated with the system to enhance their own marketing initiatives, including the development of video content.

“This project has been highlighted in our internal meetings as one of Booking.com’s big wins of 2024,” says Ben Pelkinson, engineering manager at Booking.com. “It was really nice accomplishing all this with the support of AWS.”

About Booking.com

Established in 1996 in Amsterdam, Booking.com set out to take the friction out of travel. Today, it is one of the world’s largest digital travel companies, helping millions of customers book their perfect trip.

AWS Services Used

AWS Lambda

AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers.

Learn more »

Amazon CloudFront

Securely deliver content with low latency and high transfer speeds.

Learn more »

Amazon Simple Storage Service (Amazon S3)

Amazon Simple Storage Service (Amazon S3) is an object storage service offering industry-leading scalability, data availability, security, and performance.

Learn more »

Amazon CloudWatch

Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real time. You can use CloudWatch to collect and track metrics, which are variables you can measure for your resources and applications.

Learn more »

More Travel & Hospitality Customer Stories

no items found 

1

Get Started

Organizations of all sizes across all industries are transforming their businesses and delivering on their missions every day using AWS. Contact our experts and start your own AWS journey today.