Topic, message and key from columns #1231
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
We wanted to use this JDBC Connector not to produce messages that expose our database schema but clean JSON messages that have been prepared in a database table after a transaction was commited.
We also wanted those JSON messages also indicate a destination topic and key on a message to message basis.
Thanks to this we can implement this pattern:
https://vimeo.com/111998645?embedded=true&source=video_title&owner=19072516
using this connector
Solution
Adding some configuration options with which we can indicate which table columns hold:
Does this solution apply anywhere else?
If yes, where?
Every system this whats to implement this pattern using this connector:
https://vimeo.com/111998645?embedded=true&source=video_title&owner=19072516
Test Strategy
Testing done:
Release Plan
We would like to merge this to master.
We are aware that this PR still needs some work and would be grateful for some early feedback and commends.
We develop this code with @Mistral and @Lukier1 and we are already using it on our test environments at ewejsciowki.pl