Skip to content

Allow Multi-region or Application Preferred Regions in EF Core Cosmos #29424

@codechavez

Description

@codechavez

I'm a big fan of EF Core, and I also like to use EF Core Cosmos, but I have come across a scenario where I have a cosmos DB being geo-replicated (eastus2/westus2/centralus). I know that we can set up a region when configuring options for cosmos when using EF Core for cosmos. (using C#)

options.UseCosmos("", "", o=> {
    o.Region(Regions.WestUS2);
})

However, when in a geo-replication/failover scenario I would like to be able to set up a list of regions similar to what Cosmos SDK does but for EF Core, something like the code below.

options.UseCosmos("", "", o=> {
   o.Regions(Regions.WestUS2, Regions.EastUS2)
})

Can this feature be added in the upcoming release?

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions