spring-cloud-bindings icon indicating copy to clipboard operation
spring-cloud-bindings copied to clipboard

"Replicated" data sources.

Open gm2552 opened this issue 11 months ago • 2 comments

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 avatar Feb 28 '24 17:02 gm2552

@gm2552 do we have an example usage of how this "feels" to be consumed by the app?

cppforlife avatar Feb 29 '24 19:02 cppforlife

@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.

gm2552 avatar Feb 29 '24 19:02 gm2552