Docs: DO-0 add Dara stateless mode proposal#625
Draft
krzysztof-causalens wants to merge 12 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Dara's current runtime assumes a single process owns local registries, websocket channels, task state, backend-store sequence numbers, and frontend-visible random IDs. That makes horizontal scaling beyond sticky sessions difficult and leaves the path to true stateless deployments unclear.
This PR does not change runtime behavior. It adds an internal proposal document to capture a concrete staged direction for moving Dara toward distributed-safe and eventually stateless operation.
The proposal covers:
off/warn/enforcedistributed modesServerVariablebehavior with non-local backendsunsafe_runtime_mode="local"as an escape hatchImplementation Description
Added a draft internal proposal at
docs-internal/proposals/dara-stateless-mode.md.The proposal is intentionally opinionated about the major architectural choices while leaving the final implementation details to later design and code review. It records the decisions reached around websocket routing, backend adapter shape, stable identity, manifest validation, task execution, and v2 compatibility.
Any new dependencies Introduced
None.
How Has This Been Tested?
PR Checklist:
Screenshots (if appropriate):
N/A