Skip to content

Document Visibility scope, consistency, and rate-limited APIs - #4995

Open
austonli wants to merge 11 commits into
mainfrom
docs/visibility-guidance
Open

Document Visibility scope, consistency, and rate-limited APIs#4995
austonli wants to merge 11 commits into
mainfrom
docs/visibility-guidance

Conversation

@austonli

@austonli austonli commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

What

Makes the customer-facing Visibility docs opinionated about what Visibility is for as usage scales, and completes the reference for which APIs are subject to the Visibility API rate limit.

encyclopedia/visibility/visibility.mdx

Adds three sections between "Visibility features" and "Legacy: standard Visibility":

  • Operations that use Visibility — lists the APIs that read the Visibility index (workflow search/count, ListSchedules/CountSchedules, ListBatchOperations, reachability), and clarifies that single-entity lookups by ID do not.
  • How current is Visibility data — documents the asynchronous propagation delay (usually a couple of seconds, longer under load) and points to DescribeWorkflowExecution for authoritative single-execution state.
  • When to use Visibility — guidance to keep per-workflow existence checks, progress reactions, and cross-workflow coordination off Visibility and on strongly consistent paths.

evaluate/temporal-cloud/limits.mdx

Replaces the catch-all sentence in the Visibility API Rate Limit section with the full categorized list of covered APIs, and corrects the implication that all read calls count (single-entity lookups by ID read the primary store and count against the general namespace RPS).

encyclopedia/workflow/schedule.mdx

Notes that ListSchedules / CountSchedules are served by Visibility, sharing its rate limit and eventual consistency. Per-SDK "list schedules" sections keep their existing consistency note.

Why

As customers run Visibility at higher scale and for new use cases, several innocuously-named APIs (notably ListSchedules) turn out to be Visibility queries under the hood, subject to a separate rate limit and eventual consistency. Today the docs don't say which APIs use Visibility, don't document the consistency model, and don't guide customers on what Visibility is and isn't the right tool for. This makes that explicit.

Review notes

  • Final wording and the customer-facing publish should be reviewed by Rodrigo and @austonli.
  • Anchors verified: the three new headings slugify to #operations-that-use-visibility, #how-current-is-visibility-data, #when-to-use-visibility; cross-links to /cloud/limits#visibility-api-rate-limit and /visibility#operations-that-use-visibility resolve.
  • Open follow-ups: newer worker/activity/Nexus APIs are covered by the "any API that returns a set or a count" catch-all rather than named, pending GA confirmation on Cloud; no dedicated Batch Operations or Worker Deployments pages exist yet for cross-linking.

🤖 Generated with Claude Code

┆Attachments: EDU-6849 Document Visibility scope, consistency, and rate-limited APIs

Make the customer-facing Visibility docs opinionated about what
Visibility is for as usage scales, and complete the reference for
which APIs it covers.

- visibility.mdx: add "Operations that use Visibility", "How current
  is Visibility data", and "When to use Visibility" sections.
- limits.mdx: replace the catch-all sentence in the Visibility API
  Rate Limit section with the full, categorized list of covered APIs,
  and clarify that single-entity lookups by ID do not count against it.
- schedule.mdx: note that ListSchedules/CountSchedules are Visibility
  APIs, sharing its rate limit and eventual consistency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@austonli
austonli requested review from a team and bechols as code owners July 30, 2026 12:43
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
temporal-documentation Error Error Jul 31, 2026 4:26pm

Request Review

Comment thread docs/encyclopedia/visibility/visibility.mdx
Comment thread docs/evaluate/temporal-cloud/limits.mdx
@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

Remove the "usually a couple of seconds, longer under load" wording from
"How current is Visibility data." It understated real Cloud latency,
misattributed the cause to load, and read as a commitment Cloud does not
make. Replace with variable-delay framing and an explicit note that Cloud
publishes no SLA for visibility freshness, linking /cloud/sla.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@brianmacdonald-temporal brianmacdonald-temporal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some links and tightened some wording.
We may need some additional approvals on the Limits page. I'll determine who to tap.

Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated
Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated
Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated
Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated
Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated

## How current is Visibility data

Visibility is a search index that Temporal updates asynchronously. After a change is recorded, it takes some time to propagate to the index, so a List or Count query can briefly return stale results. This propagation delay is variable. It is usually fast, but it can be several seconds or longer, and Temporal Cloud does not publish an [SLA](/cloud/sla) for how quickly changes become visible. Treat Visibility as eventually consistent and avoid depending on a fixed or guaranteed delay.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may need to get some official guidance on how we talk about the propagation delay in this paragraph, to make sure we don't introduce legal issues.

Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated
Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated
Comment thread docs/encyclopedia/visibility/visibility.mdx Outdated
austonli and others added 8 commits July 30, 2026 08:55
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
@github-actions

Copy link
Copy Markdown
Contributor

❌ Docs build failed

Broken anchors

The target page exists, but the heading/anchor it links to doesn't. Fix the anchor, or add the missing heading to the target page.

Page Broken target
/visibility /references/operation-list#operations

Run yarn build locally to reproduce.

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.

4 participants