Temporal

Media processing Workflow solution

Jul 19, 2021
Media processing Workflow solution
SummaryAI, from the source post

This post introduces a media processing workflow solution built with Temporal. It details the problem of orchestrating complex, stateful, and fault-tolerant workflows, specifically for media processing involving IoT sensor data. The solution outlines the business requirements and maps them to Temporal Workflows and Activities. Key technical aspects covered include: defining Activity Options with `StartToCloseTimeout` and `RetryPolicy` for managing activity execution and failures; using `workflow.CreateSession` to schedule related activities on the same worker instance; and demonstrating how to handle conditional logic (e.g., terminating a workflow early if media is not obtainable) and iterative processing with retries. The post provides code examples in Go for the workflow, activities, and a simulated vendor API, illustrating the practical application of Temporal's durable execution for robust media processing pipelines.

More from the Durable Execution trail