Skip to content

feat: serverless worker#4445

Open
lennessyy wants to merge 10 commits intomainfrom
feat/serverless-worker-prerelease
Open

feat: serverless worker#4445
lennessyy wants to merge 10 commits intomainfrom
feat/serverless-worker-prerelease

Conversation

@lennessyy
Copy link
Copy Markdown
Contributor

@lennessyy lennessyy commented Apr 16, 2026

What does this PR do?

Notes to reviewers

┆Attachments: EDU-6216 feat: serverless worker

lennessyy and others added 3 commits April 16, 2026 16:06
* docs: Serverless Workers - Go SDK pages (2/4)

Add Go SDK Serverless Workers documentation including the lambdaworker
package guide for AWS Lambda, rewrite run-worker-process to focus on
long-lived Workers, and remove cloud-worker (content folded in).
Update sidebars, add redirect, and set broken links to warn for
cross-PR references.

Part of #4405.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: expand OTel section with context and links for serverless Go SDK page

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: link worker defaults to Go SDK reference, clarify ShutdownDeadlineBuffer is serverless-only

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: address review feedback on Go SDK pages

- Replace ambiguous "Lambda deadline" with "configurable invocation
  deadline" on the AWS Lambda page (akhayam)
- Rewrite tautological "serverless compute" intro on the Go SDK
  serverless landing page (smuneebahmad)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: add Serverless Workers production deployment guide (3/4)

Add deploy guide for serverless workers covering AWS Lambda deployment,
including the serverless-workers index and aws-lambda pages under
production-deployment/worker-deployments. Update sidebar navigation
and set onBrokenLinks/onBrokenAnchors to warn for cross-PR references.

Part of #4405.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: address review feedback on Deploy guide

- Rename TLS env vars to TEMPORAL_TLS_CLIENT_CERT_PATH and
  TEMPORAL_TLS_CLIENT_KEY_PATH (smuneebahmad)
- Add HOME=/tmp env var to deploy command and env var table; needed
  for the SDK's config loader to resolve a user config directory in
  Lambda (smuneebahmad)
- Include TEMPORAL_API_KEY in deploy command so the auth path is
  complete (smuneebahmad)
- Remove --scaler-min-instances, --scaler-max-instances from
  create-version snippet (smuneebahmad)
- Remove --ignore-missing-task-queues from set-current-version
  snippet (smuneebahmad)
- Replace CloudFormation template stub with the real template from
  smuneebahmad, inline in a <details> block plus a downloadable file
  at /files/temporal-cloud-serverless-worker-role.yaml
- Update IAM parameter table to match real template params
  (AssumeRoleExternalId, LambdaFunctionARNs, RoleName)
- Add note flagging template is Cloud-scoped; self-hosted TBD
- Add sample aws cloudformation create-stack usage
- Use "invocation deadline" for consistency with Go SDK page

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: Serverless Workers - Evaluate pages (1/4)

Add the Evaluate section for Serverless Workers documentation:
- Serverless Workers overview page
- Interactive demo page with ServerlessWorkerDemo component
- Sidebar entry under Features
- Redirect from old demo URL
- Change onBrokenLinks/onBrokenAnchors to 'warn' for incremental PRs

Part 1 of 4, splitting PR #4405 into smaller PRs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: address PM feedback on evaluate page

- Fix polling description: serverless workers still poll, the difference is lifecycle
- Tone down operational overhead claims: customers still deploy and configure
- Clarify long-running limitation applies to activities, not workflows

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: address review feedback on Evaluate pages

- Reframe lifecycle description: Temporal invokes the Serverless Worker
  on demand (bchav, akhayam)
- Clarify operational overhead: offload invocation and scaling, but
  deployments remain the user's responsibility (bchav)
- Introduce "long-lived Workers" terminology and use consistently
- Sharpen Lambda execution limit wording and Cloud Run callout
  (akhayam, bchav)
- Remove Worker Versioning row from comparison table as too low-level
  (akhayam)
- Remove --scaler-min-instances, --scaler-max-instances, and
  --ignore-missing-task-queues from demo CLI snippets (smuneebahmad)
- Remove Min/Max Instances config fields from demo UI (smuneebahmad)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview, Comment Apr 17, 2026 11:21pm

Request Review

@lennessyy lennessyy marked this pull request as ready for review April 17, 2026 01:54
@lennessyy lennessyy requested a review from a team as a code owner April 17, 2026 01:54
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2026

* docs: add Serverless Workers encyclopedia page and update related pages

Add the encyclopedia entry for Serverless Workers, update workers.mdx
and task-queues.mdx with serverless references, add the architecture
diagram, update sidebar, and add "Serverless Worker" to Vale terms.

Change onBrokenLinks/onBrokenAnchors to 'warn' to accommodate
cross-references to pages in other PRs in this series.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Remove differences section from encyclopedia page

The comparison table lives on the evaluate page now.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix Worker invocation wording in encyclopedia

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: address review feedback on encyclopedia page

- Use "traditional long-lived Worker" on first contrast, "long-lived
  Worker" thereafter (akhayam, smuneebahmad)
- Replace "triggers the compute environment" with "invokes the
  Serverless Worker on demand" (akhayam)
- Use "shuts down" instead of "exits" to match AWS Lambda runtime
  terminology (akhayam)
- Fix "serverless function" -> "Serverless Worker" for cross-provider
  accuracy
- Use "invocation deadline" for consistency with other pages
- Add Worker lifecycle section with new lifecycle diagram (addresses
  akhayam's suggestion to mirror AWS's Lambda lifecycle diagram)
- Explain Worker stop timeout and shutdown deadline buffer, including
  tuning guidance for long-running Activities and the consequences of
  raising one knob without the other

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: crop lifecycle diagram

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: add light/dark themed diagrams with figure captions

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…aram table

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…o Go SDK page

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant