Open Closed

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


User avatar
0
portx-dev created

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 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team 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 created

    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 created
    Support Team 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 created

    thx

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15