खुला हुआ बंद किया हुआ

I want to separate DB read and write endpoints. #4870


User avatar
0
portx-dev बनाया था

I want to separate DB read and write endpoints. Is such a thing possible with the standard features? The objective is load balancing.

env: ABP Commercial 7.1


4 उत्तर (ओं)
  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    Abp does not provide out-of-the-box read-write separation.

    You can see: https://github.com/abpframework/abp/issues/7120 and https://github.com/abpframework/abp/issues/3838

  • User Avatar
    0
    portx-dev बनाया था

    Thank you very much.

    I have checked and it looks like it can be done with some customization. I am aware that this customization is not too difficult, is that correct?

  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    Hi,

    Yes, you can try to implement it.

    Just an idea, You can customize the IReadOnlyRepository and switch the connection string to the read-only database.

  • User Avatar
    0
    portx-dev बनाया था

    thx

Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11