-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Replicated" data sources. #110
base: main
Are you sure you want to change the base?
Conversation
Going with a single secret design as well as only supporting a single logical "replicated" connection.
Created an abstract class for most replicated database processors as there is a common pattern between these processors. Added unit tests for new replicated binding processors.
Also updated Java doc and tagged all new processors as "final"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add license headers to all the new source files, making sure to make it start with:
Copyright 2024 the original author or authors.
Thanks!
Adding missing license text to top of new files.
@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. |
A replicated datasource is a single logical datasource that is comprised of two endpoints:
The data source is presented as a single binding and maps to the following spring properties:
JDBC:
R2DBC:
where
*
maps toDataSourceProperties
andR2dbcProperties
respectively.This PR creates a
BindingsPropertiesProcessor
for all of the currently supported databases using the following naming convention:<Database>ReplicatedBindingsPropertiesProcessor