Video on Demand on AWS
Video on Demand on AWS

Appendix D: Publishing Workflow

When encoding is complete, Amazon Simple Notification Service (Amazon SNS) sends a notification that triggers an AWS Lambda function that starts the publishing process. The publishing process includes:

      Video on demand solution publishing workflow
  • Validate Output - Checks the event data for the completed encoding job, creates the Amazon Simple Storage Service (Amazon S3) and Amazon CloudFront URLs, and updates the event data.

  • Dynamo Update - Updates Amazon DynamoDB table with the event data.

  • ETS Job Check - Checks if all Amazon Elastic Transcoder jobs are complete and sets the workflow status to encoding or complete.

  • Status – Selects which step to perform next based on the workflow status.

  • Glacier – Tags the source video with the unique identifier and archive status to enable the Amazon Glacier lifecycle policy.

  • Dynamo Status – Updates the workflow status to complete.

  • Publish – Sends an Amazon SNS notification with a summary of the workflow and the Amazon CloudFront URLs.

  • Encoding – The workflow is completed successfully with the status set to encoding.