aws-mysql-jdbc
aws-mysql-jdbc copied to clipboard
[WIP] Add configuration option to load balance reader transactions
Summary
Add configuration option to load balance reader transactions
Description
- If reader load balancing is enabled and setReadOnly(true) has been called, the ReadWriteSplittingPlugin will switch reader connections at transaction boundaries
- Load balancing is performed by randomly selecting new reader hosts
- Also added a connection cache in the ReadWriteSplittingPlugin to avoid performance penalty for regular reader switching