Skip to content

[docs] Document single-member MongoDB replica set for transactions and change streams - #1730

Merged
David Pine (IEvangelist) merged 3 commits into
release/13.6from
docs/pr-19961-35859688448-2-83368de4374b1aa8
Sep 23, 2026
Merged

David Pine (IEvangelist) merged 3 commits into
release/13.6from
docs/pr-19961-35859688448-2-83368de4374b1aa8

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#19961

@sebastienros

Target branch

Targeting release/13.6 based on the source PR milestone 13.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 logical AddMongoDBReplicaSet(...) 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:

  • Added a new "Enable transactions and change streams with a single-member replica set" section (with C#/TypeScript tabs) covering:
    • The ASPIREMONGODB001 experimental diagnostic and how to suppress it in C#.
    • Basic usage of WithReplicaSet() / withReplicaSet() on the MongoDB server resource.
    • The optional replica set name (defaults to the resource name) and how to override it.
    • Keyfile configuration via WithKeyFile before WithReplicaSet, and the auto-generated keyfile fallback.
    • Data volume/bind mount persistence caveats (credentials and replica set identity must stay consistent across restarts).
    • A note pointing to the existing AddMongoDBReplicaSet(...).WithMember(...) API for advanced multi-member replication experiments, and that servers configured with WithReplicaSet shouldn'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)

Generated by PR Documentation Check · copilot · auto · 58.7 AIC · ⌖ 12.7 AIC · ⊞ 18.7K · ◷

…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]>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Sep 23, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1730. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1730 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Copilot AI 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.

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 Low severity

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]>
@IEvangelist
David Pine (IEvangelist) merged commit 1937410 into release/13.6 Sep 23, 2026
11 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the docs/pr-19961-35859688448-2-83368de4374b1aa8 branch September 23, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants