DEV Community

Cover image for The ideal VOD Platform build for high-volume Streaming Data
Renato Nabinger
Renato Nabinger

Posted on

The ideal VOD Platform build for high-volume Streaming Data

One of the best ways to streamline your video streaming is by using a combination of Serverless architecture, S3 and CloudFront.

This innovative solution uses a serverless architecture that enables you to run code, integrate applications, and manage data without needing to worry about managing servers. Thanks to its automatic scaling and built-in high availability features, this approach is both more agile and more cost-effective, with a pay-as-you-go billing model that ensures you only pay for what you use.

By eliminating the need for infrastructure management tasks like patching and capacity provisioning, this serverless approach allows you to concentrate on creating code that best serves your customers.

The AWS Lambda event-driven compute service is the starting point for all serverless applications, and it is natively integrated with over 200 AWS services and SaaS applications.
The app can be built in Next.js with the help of serverless next component, can be deployed in AWS with near to zero configuration. All static routes in the application will be pre-rendered and distributed on CloudFront to maximize speed.

This will result is a dynamic application that can run near the speed of a static site because the dynamic parts are being distributed by the CDN as well.

To authenticate users for the web application, this particular solution uses AWS Cognito's User Pools, which control access to the GraphQL API, generating temporary AWS credentials with limited privileges for accessing S3 content.

AWS AppSync, which is based on the GraphQL API, allows client applications to perform CRUD operations on videos and store them in an S3 bucket.

To accomplish all of this, two separate S3 buckets are used: one for storing raw video and another for storing video with different output formats.

Lambda functions are employed for a range of tasks, including triggering MediaConvert jobs, storing metadata in DynamoDB, creating signed URL tokens, and sending notifications when MediaConvert jobs are complete.

MediaConvert, meanwhile, automatically transcodes the uploaded video to HLS format for multiple bitrates and device types, while Secrets Manager securely stores CloudFront's private keys for signing CloudFront URLs. CloudFront itself delivers content securely via CDN Edge locations to authorized users through the application at runtime.

VOD AWS Architecture

Architecture benefits

The architecture of this solution has numerous benefits, including scalability through the CloudFront CDN, secure video content to prevent unauthorized access, automated transcoding of video content via MediaConvert, support for multiple devices using adaptive bitrate streaming, and secure storage and retrieval of secret keys using Secrets Manager. The solution can be quickly built and deployed using Amplify and CloudFormation, allowing you to get up and running with your video streaming service in no time.

Top comments (0)