Skip to content

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

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?

Activity

  1. added this to the Backlog milestone on Oct 26, 2022
  2. removed this from the Backlog milestone on Nov 29, 2022
  3. added this to the Backlog milestone on Nov 30, 2022
  4. modified the milestones: Backlog, 8.0.0 on Jun 28, 2023
  5. added a commit that references this issue on Sep 6, 2023
    f6a6ebc
  6. removed their assignment
    on Sep 6, 2023
  7. added a commit that references this issue on Sep 6, 2023
    c8a78bb
  8. added a commit that references this issue on Sep 6, 2023
    e859ae7
  9. modified the milestones: 8.0.0, on Sep 8, 2023
  10. modified the milestones: , 8.0.0 on Nov 14, 2023
  11. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions