Has anyone figured out how to scale Amazon RDS read replicas?

后端 未结 4 464
离开以前
离开以前 2021-01-31 20:57

I\'ve recently set up a read replica to take some of the read load off of my Amazon multi-AZ RDS instance. The Amazon documentation clearly states that it is \"up to your appli

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 21:35

    An AWS engineer provided some insight into the question here.

    Here is a snippet of his response:

    in general you can load-balance traffic at the following 3 logical places:

    • Application layer - create multiple connection pools and send all reads to the read-replicas.
    • Web framework/middleware - some web frameworks have in-built support for multiple databases [1].
    • External proxy - You can use an external proxy like MySQLproxy [2].

    [1] - https://docs.djangoproject.com/en/dev/topics/db/multi-db/

    [2] - https://launchpad.net/mysql-proxy

提交回复
热议问题