aspnetboilerplate icon indicating copy to clipboard operation
aspnetboilerplate copied to clipboard

[Question] Interactive replicas database

Open quocduong opened this issue 1 year ago • 1 comments

Dear @ismcagdas ,

We need to deploy the application under HA proxy (High Availability Proxy), with one DB to read, another to write. Can I separate the Repository to do this based on Zero infrastructure? Would you happen to have document or demo for this requirement?

#aspnetboilerplate

quocduong avatar Aug 08 '24 06:08 quocduong

Maybe you can create your own repository base and use two different GetContextAsync like this https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.EntityFrameworkCore/EntityFrameworkCore/Repositories/EfCoreRepositoryBaseOfTEntityAndTPrimaryKey.cs#L35

ismcagdas avatar Aug 12 '24 07:08 ismcagdas