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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    portx-dev created

    thx

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 23, 2026, 09:57
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.