proomt

Search

Search posts, papers, and topics

All posts

TemporalGarima Gupta11 min readintermediate

From dedicated Workers to Serverless Workers: Migrating Temporal Workflows to AWS Lambda

Summary

Temporal’s Serverless Workers let you replace always‑on Kubernetes Workers with on‑demand Lambda invocations. The guide shows how to add a Lambda handler, configure worker versioning, tune shutdown timeouts for long‑running activities, package dependencies for Lambda, and deploy the function, keeping workflow and activity code unchanged.

  • Serverless Workers use the same SDK; only the entry‑point changes to a Lambda handler built with `run_worker()`.
  • Worker versioning (PINNED vs AUTO_UPGRADE) is required; you can set it per workflow or as a worker default.
  • For activities longer than a few seconds, align three timeouts: worker stop timeout, shutdown deadline buffer, and Lambda’s invocation timeout (max 15 min).
  • Package dependencies in a Linux‑compatible layer, trim to stay under Lambda’s 250 MB unzipped limit, and strip binaries if needed.

Serverless Workers eliminate the need for a dedicated worker fleet for bursty or infrequent workloads, reducing operational overhead and cost while preserving Temporal’s reliability guarantees. Proper timeout tuning and packaging are essential to avoid mid‑activity termination and deployment failur…

6/10

Related reading

  1. Automated Worker Versioning with GitHub Actions

    The post shows how to wire Temporal's Worker Controller with GitHub Actions to automatically build, version, and roll out worker images via Kubernetes. A demo repo illustrates the full CI pipeline and safe version upgrades.

    Temporaltemporal.io10 min
  2. AWS Lambda Pushes Serverless Toward Long-Running Workloads

    AWS Lambda Managed Instances now allow functions to run up to 90 minutes, six times longer than before, and add Graviton5 support. The longer timeout requires careful handling of connections, credentials, and idempotency, and may shift some workloads from ad‑hoc workarounds to Lambda but also invites cost‑aware alternatives.

    InfoQinfoq.com2 min
  3. Durable Digest: August highlights

    Temporal’s August digest rolls out a suite of new features: Serverless Workers for AWS Lambda (public preview), Projects for organizing Cloud resources, Standalone Nexus Operations, Google GenAI and Deep Agents integrations, Activity Operations and Workflow Pause controls, poller autoscaling GA, and .NET/TypeScript Nexus SDKs. It also adds a Web UI news feed, new tutorials, validated patterns, an…

    Temporaltemporal.io5 min
  4. How LlamaIndex uses Temporal to scale reliable document orchestration

    LlamaIndex migrated from RabbitMQ to Temporal for orchestrating complex, multi-stage document processing workflows, scaling to tens of millions of pages daily. This shift enabled them to replace ad-hoc state management and concurrency controls with Temporal's durable execution and workflow primitives, improving reliability and resource efficiency.

    Temporaltemporal.io7 min