spring-cloud-bindings
spring-cloud-bindings copied to clipboard
"Replicated" data sources.
A replicated datasource is a single logical datasource that is comprised of two endpoints:
- A read/write endpoint
- A read only endpoint
The data source is presented as a single binding and maps to the following spring properties:
JDBC:
spring.datasource.replicated.rw.*
spring.datasource.replicated.ro.*
R2DBC:
spring.r2dbc.replicated.rw.*
spring.r2dbc.replicated.ro.*
where *
maps to DataSourceProperties
and R2dbcProperties
respectively.
This PR creates a BindingsPropertiesProcessor
for all of the currently supported databases using the following naming convention: <Database>ReplicatedBindingsPropertiesProcessor
@gm2552 do we have an example usage of how this "feels" to be consumed by the app?
@gm2552 do we have an example usage of how this "feels" to be consumed by the app?
@cppforlife Yes, there is an internal document that outlines how an app would use this with and without auto configuration. I sent you a link.