master/slave構成にする場合、MySQLのドライバでスレーブへの分散設定を行い、Slaveを見に行かせたい時はServiceクラスのメソッドにアノテーションつける。EntityManagerからConnection取るやり方が参考になる。

oinumeoinume のブックマーク 2012/11/02 15:47

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

MySQL Master/Slave Load Balancing with JPA and Spring - Dragisa Krsmanovic

    MySQL Connector/J driver has built-in feature for load balancing. If you have a cluster of read/write MySQL servers. Putting loadbalance: in the JDBC URL will ensure both read and write operations ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう