Commit a7b1d49
committed
Add weak consistency option to DescribeNamespaceRequest (#775)
<!-- Describe what has changed in this PR -->
**What changed?**
Added weak_consistency boolean field to `DescribeNamespaceRequest`. When
set to `true`, the server may serve the response from an
eventually-consistent source (e.g. the in-memory namespace registry)
instead of reading through to persistence.
<!-- Tell your future self why have you made these changes -->
**Why?**
`DescribeNamespace` currently always reads through to the persistence
store. The new field lets clients opt into eventually-consistent reads
where read-after-write semantics aren't required, while preserving the
existing strong-consistency contract for operator/admin callers (default
behavior unchanged).
<!-- Are there any breaking changes on binary or code level? -->
**Breaking changes**
None. Additive field with default `false`, preserving current behavior
for clients that don't set it.
<!-- If this breaks the Server, please provide the Server PR to merge
right after this PR was merged. -->
**Server PR**
temporalio/temporal#101031 parent 2e9d726 commit a7b1d49
4 files changed
Lines changed: 23 additions & 10 deletions
File tree
- proto
- temporalproto/openapi
- workflowservice/v1
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments