Repository navigation
[docs] Document single-member MongoDB replica set for transactions and change streams - #1730
Merged
David Pine (IEvangelist) merged 3 commits intoSep 23, 2026
Conversation
…e streams Documents the new WithReplicaSet()/withReplicaSet() opt-in on MongoDBServerResource added in microsoft/aspire#19961, including the experimental attribute suppression, optional set name, keyfile configuration, data persistence caveats, and the relationship to the existing multi-member AddMongoDBReplicaSet API. Co-authored-by: Copilot <[email protected]>
7 of 14 tasks
Contributor
Author
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
David Pine (IEvangelist)
requested a review
from Sébastien Ros (sebastienros)
September 23, 2026 16:53
David Pine (IEvangelist)
marked this pull request as ready for review
September 23, 2026 16:53
David Pine (IEvangelist)
requested review from
David Pine (IEvangelist) and
Eric Erhardt (eerhardt)
as code owners
September 23, 2026 16:53
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Clarify keyfile requirements and the publish restriction for the single-member path.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Documents single-member MongoDB replica-set support for local transactions and change streams.
Changes:
- Adds C# and TypeScript usage examples.
- Documents naming, keyfiles, persistence, and advanced replica-set guidance.
| File | Summary |
|---|---|
src/frontend/src/content/docs/integrations/databases/mongodb/mongodb-host.mdx |
Adds single-member replica-set documentation and examples. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Clarify keyfile parameter requirements for MongoDB. Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Clarified usage of WithDataVolume and WithDataBindMount for MongoDB data persistence. Updated note on AddMongoDBReplicaSet for local multi-member replication experiments. Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Sébastien Ros (sebastienros)
approved these changes
Sep 23, 2026
David Pine (IEvangelist)
deleted the
docs/pr-19961-35859688448-2-83368de4374b1aa8
branch
September 23, 2026 19:22
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.

Documents changes from microsoft/aspire#19961
@sebastienrosTarget branch
Targeting
release/13.6based on the source PR milestone13.6.Why this is needed
microsoft/aspire#19961 adds a simple, single-member MongoDB replica set path directly on
MongoDBServerResource. Previously, enabling transactions and change streams required creating a separate logicalAddMongoDBReplicaSet(...)resource with split-horizon TLS configuration, even for the common local inner-loop scenario of a single container.The new
WithReplicaSet()(C#) /withReplicaSet()(TypeScript) API lets consumers opt in on the existing MongoDB server resource, with automatic initialization and readiness handled by the resource lifecycle. This is a significant, documented user-facing change (see the PR's "User-facing usage: before and after" section) to an experimental API area (ASPIREMONGODB001), and the existing docs described only the advanced multi-member replica-set path.Triggered signals from the automated check:
integration_readme_changed,pr_body_has_user_facing_section,pr_body_has_deprecation_marker(this last one is a false positive from the phrase "this PR adds no obsoletions" in the PR body — no deprecation actually occurs).What changed
Updated
src/frontend/src/content/docs/integrations/databases/mongodb/mongodb-host.mdx:ASPIREMONGODB001experimental diagnostic and how to suppress it in C#.WithReplicaSet()/withReplicaSet()on the MongoDB server resource.WithKeyFilebeforeWithReplicaSet, and the auto-generated keyfile fallback.AddMongoDBReplicaSet(...).WithMember(...)API for advanced multi-member replication experiments, and that servers configured withWithReplicaSetshouldn't also be added as members there.Files modified
src/frontend/src/content/docs/integrations/databases/mongodb/mongodb-host.mdx(updated existing page; no new pages created)