aspnetboilerplate
aspnetboilerplate copied to clipboard
[Question] Interactive replicas database
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
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