Starts in:
0 DAY
15 HRS
23 MIN
16 SEC
Starts in:
0 D
15 H
23 M
16 S
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 November 20, 2024, 13:06