Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB Transactions requires replicas #5238

Open
feritzcan2 opened this issue Aug 9, 2024 · 4 comments · May be fixed by #5712
Open

MongoDB Transactions requires replicas #5238

feritzcan2 opened this issue Aug 9, 2024 · 4 comments · May be fixed by #5712
Labels
area-integrations Issues pertaining to Aspire Integrations packages feature A single user-facing feature. Can be grouped under an epic. mongodb Issues related to mongodb integrations

Comments

@feritzcan2
Copy link

Hello, we are using MongoDB and recently we have integrated with aspire.
However, running MongoDB transactions requires replicas. As I checked I couldn't find any solution right now.

Can you assist me if its possible please?

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Aug 9, 2024
@davidfowl davidfowl added area-integrations Issues pertaining to Aspire Integrations packages feature A single user-facing feature. Can be grouped under an epic. and removed area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication labels Sep 7, 2024
@jakoss
Copy link

jakoss commented Sep 11, 2024

We are also interested in that. It became more important after MongoDB EF Provider 8.1 enabled transactions by default and for now we have to explicitly disable those for local work

@twsouthwick twsouthwick linked a pull request Sep 14, 2024 that will close this issue
16 tasks
@twsouthwick
Copy link
Member

I opened a PR that enables with the extension method:

namespace Aspire.Hosting;

public static class MongoDBBuilderExtensions
{
+  public static IResourceBuilder<MongoDBServerResource> WithReplicaSet(this IResourceBuilder<MongoDBServerResource> builder, string? replicaSet = null);
}

@davidfowl davidfowl added the mongodb Issues related to mongodb integrations label Sep 14, 2024
@feritzcan2
Copy link
Author

I opened a PR that enables with the extension method:

namespace Aspire.Hosting;



public static class MongoDBBuilderExtensions

{

+  public static IResourceBuilder<MongoDBServerResource> WithReplicaSet(this IResourceBuilder<MongoDBServerResource> builder, string? replicaSet = null);

}

How can i track status?

@jakoss
Copy link

jakoss commented Sep 14, 2024

How can i track status?

Here: #5712

It's also linked in the right menu of this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-integrations Issues pertaining to Aspire Integrations packages feature A single user-facing feature. Can be grouped under an epic. mongodb Issues related to mongodb integrations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants