Add implementation of AbstractRoutingDataSource and ability to execute read-only queries on replica #209
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
After #208
See
https://www.baeldung.com/spring-abstract-routing-data-source
and
https://spring.io/blog/2007/01/23/dynamic-datasource-routing/
The main idea here is to execute write queries only on primary (master) host and dynamically redirect read-only queries to replicas
Watch https://youtu.be/hjJ6ODxgYqE
The text was updated successfully, but these errors were encountered: