[SpringBoot] MySQL read-write separation realization

(Foreword)

Let us recall, in a high concurrency scenario, what optimization methods we can have for the database:

  • Read and write separation
  • Add cache
  • Master-slave architecture cluster
  • Sub-library and sub-table

The above are the main optimization methods of the database. In Internet project applications, most of them are read more and write less scenarios. We can set up two libraries to achieve separation of reads and writes, called the main library and the read library.

Insert picture description here

Limitations of master-slave synchronization

Here is divided into main data

Guess you like

Origin blog.csdn.net/weixin_40849588/article/details/114953927