BrandActif - AWS infrastructure for <strong style="color:#0053FF;font-weight:500">TV commerce</strong> at scale

BrandActif - AWS infrastructure for TV commerce at scale

Turning live TV ads into real-time mobile engagement, on AWS infrastructure built to absorb broadcast-sized traffic spikes.

BrandActif - AWS infrastructure for <strong style="color:#0053FF;font-weight:500">TV commerce</strong> at scale-mockup-desktop
BrandActif - AWS infrastructure for <strong style="color:#0053FF;font-weight:500">TV commerce</strong> at scale-mockup-mobile

Markets

India, Singapore, UK and Europe

Partnership

Since 2019, still active

Scale

400M viewers in India, 170+ campaign apps, 4 AWS regions

Services

AWS DevOps TerraformSecurity

About the project

Project Overview

Description

BrandActif turns television into an interactive channel: when an ad airs, viewers scan the screen or tap a link on their phone and land in a synced, branded experience with offers, videos, polls or a test-drive booking. Global FMCG, media, sports and retail brands have run campaigns on the platform. Selleo has been BrandActif's technology partner since 2019, and we designed, built and operate the whole AWS infrastructure behind it. That covers the scanning engine that recognises TV images and audio, the admin portal where brands build campaigns, and the mobile web apps viewers open. Everything is defined as code in Terraform, so each environment and region can be rebuilt and audited from one repository.

What we run on AWS

  1. 1
    Scanning engineRecognises TV images and audio in real time
  2. 2
    Admin portalWhere brands build and launch campaigns
  3. 3
    Campaign web appsThe branded mobile experience viewers open

Challenge

TV traffic is all-or-nothing: an ad break sends a whole audience to their phones in the same 30 seconds, then traffic drops back to almost zero. The platform had to serve a TV audience of 400 million viewers in India and stay fast at the exact moment they all reach for their phones. Paying for that capacity around the clock would have wasted most of the budget, because most hours carry no live campaign. BrandActif also expanded from India to Singapore and the UK, so data and apps had to sit close to each audience. Every new brand campaign needed its own secure mobile app on its own domain, launched fast and without manual setup.

Traffic during a TV campaign

Ad break Before After ~30-second spike

Outcome

BrandActif has run live TV campaigns on this infrastructure for nearly seven years, across India, Singapore and the UK. The platform serves a TV audience of 400 million viewers in India, scaling out for each ad break and back down between campaigns, so BrandActif pays for peak capacity only when an ad is on air. Launching a new brand app comes down to one Terraform module and a DNS record, which is how production grew to more than 170 branded campaign apps. Cost control is built in, with AWS Budgets alerts tracking monthly spend.

400M
TV viewers in India
7 yrs
of live campaigns in production
170+
branded campaign apps
3
production regions: Mumbai, Singapore, Ireland

Our solution

How we built it on AWS

A containerised, queue-driven platform that scales up for a campaign and back down when it ends.

01

A branded app per campaign

Each campaign's mobile web app is served from S3 through its own CloudFront distribution, with an ACM certificate, a Route 53 domain and Lambda@Edge security headers. Production now runs 170+ of these apps.

02

Elastic compute

The scanner, portal and background workers run as Docker containers on Amazon ECS, on EC2 Auto Scaling groups behind Application Load Balancers. A custom Lambda rebalances tasks across instances after each scale-up.

03

Peaks absorbed by queues

Incoming TV, radio and geolocation scans go to Amazon SQS queues, so a 30-second spike is buffered instead of overloading the database.

04

Database built for bursts

Amazon RDS PostgreSQL runs Multi-AZ, with a PgBouncer connection-pooling cluster on ECS in front of it and ElastiCache Redis for caching.

05

Serverless media pipeline

AWS Lambda creates scan images and extracts video frames, Elastic Transcoder converts videos to HLS in 360p, 540p and 720p, and Amazon Rekognition moderates uploaded videos automatically.

06

Multi-region

Production runs in Mumbai (ap-south-1), Singapore (ap-southeast-1) and Ireland (eu-west-1), with the global edge layer in us-east-1.

BrandActif on AWSViewers open a CloudFront campaign app, traffic enters through Route 53 and an Application Load Balancer into ECS, scans are buffered in SQS, workers store results in RDS PostgreSQL and ElastiCache Redis, and a serverless media pipeline handles video. CodePipeline and CodeBuild deploy containers to ECS.BrandActif on AWSProduction in Mumbai, Singapore and Ireland, with a global edge layerViewer on a phoneScans the TV ad or taps a link during the breakopens the campaign appCampaign app: CloudFront, S3, Lambda@Edge170+ branded apps on their own domains, cached at the edgeCodePipeline + CodeBuildBuilds containers from GitHubPushes to ECR, deploys to ECSAPI callsEntry: Route 53 + Application Load BalancerRoutes scan and API traffic into the private VPCdeploysAmazon ECS on EC2 Auto Scalingscales out per campaignScannerMatches TV images and audioPortalBrands build campaigns hereServerless media pipelineAWS LambdaScan images, video framesElastic TranscoderHLS video, 360p to 720pAmazon RekognitionModerates uploaded videosAmazon S3Uploads and processed mediascan jobsAmazon SQS queuesBuffer the 30-second spike: scans, radio scans, geocodingECS workersDrain the queues at a steady rate and store the resultsRDS PostgreSQLMulti-AZ, behind PgBouncerElastiCache RedisIn-memory cacheBrandActif on AWSViewers open a CloudFront campaign app, traffic enters through Route 53 and an Application Load Balancer into ECS, scans are buffered in SQS, workers store results in RDS PostgreSQL and ElastiCache Redis, and a serverless media pipeline handles video. CodePipeline and CodeBuild deploy containers to ECS.BrandActif on AWSProduction in Mumbai, Singapore and Ireland,with a global edge layerViewer on a phoneScans the TV ad or taps a link during thebreakopens the campaign appCampaign app: CloudFront, S3,Lambda@Edge170+ branded apps on their own domains,cached at the edgeAPI callsEntry: Route 53 + Application LoadBalancerRoutes scan and API traffic into the privateVPCCodePipeline +CodeBuildBuilds containersfrom GitHubPushes to ECR,deploys to ECSdeploysAmazon ECS on EC2 Auto Scalingscales out per campaignScannerMatches TV imagesand audioPortalBrands buildcampaigns herescan jobsAmazon SQSqueuesBuffer the30-second spike:scans, radio scans,geocodingECS workersDrain the queues ata steady rate andstore the resultsRDSPostgreSQLMulti-AZ, behindPgBouncerElastiCacheRedisIn-memory cachemediaServerless mediapipelineAWS LambdaScan images,video framesElasticTranscoderHLS video, 360pto 720pAmazonRekognitionModeratesuploaded videosAmazon S3Uploads andprocessed media
Scans go into SQS instead of straight to the database, so ECS can scale out while the queues absorb the first seconds of an ad break.

Technologies

AWS services used

Defined as code across 16 Terraform Cloud workspaces covering every environment and region.

AreaAWS servicesWhat they do for BrandActif
ComputeECS, EC2 Auto Scaling, ECR, AWS BatchRun the scanner, portal and workers as containers; scale for campaigns; run batch deployments of campaign apps
NetworkingVPC, Application and Network Load Balancers, NAT Gateway, Route 53Public and private subnets, traffic routing, 200+ DNS records across 6 hosted zones
DataRDS PostgreSQL (Multi-AZ), ElastiCache Redis, S3Campaign and scan data, caching, uploads and media
MessagingSQS, SNS, SESBuffer scan spikes, alerts, transactional email with DKIM
Serverless and mediaLambda, Lambda@Edge, API Gateway, Elastic Transcoder, RekognitionScan image generation, video frame extraction, HLS video, automatic content moderation, security headers
DeliveryCloudFront, ACM170+ branded campaign apps on custom domains with TLS
CI/CDCodePipeline, CodeBuild, ECRBuild and deploy containers from GitHub
SecurityIAM, SSM Parameter StoreLeast-privilege roles, configuration
Monitoring and costCloudWatch, Elasticsearch Service with Cognito, AWS BudgetsDashboards, log search, Slack alerts, monthly budget alerts

Design system

Styleguide

We have developed a unique and user-friendly design system.

Typography

Typography Brandactif

Colors

Primary#0053FF
Secondary#FF6503
Logo font#0C0A32
Font primary#333333
Font secondary#808080
Complementary#36A93F

Components

Styleguide-components-mockup

results

Outcome Gallery

This is how the app looks inside!

Mobile Screens

Mobile Screens

Campaign view

Campaign view
Brandactif Campaign View 2

Users screens

Users screens-0
Users screens-1
Bagaar NV
Bagaar NV

Check out the next project

Custom recruitment application designed for employers and recruitment agencies.
Read moreabout Bagaar NV

Upload briefs, specs, mockups or any documents that help us understand your project.

By submitting this form, you agree to our Privacy Policy.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
or