Hi everybody,
I have the following use case we would like to implement and since we have just started exploring streaming apps I need some help :)
We have 3 CDC streams on the input from debezium representing 3 MySQL tables from a source database.
Those 3 tables are one logical loan entity where one stream is the actual loan account table, the second stream represents the installments (one to many, one loan having multiple installments) and the third stream is just some additional data enriching the actual loanaccount (one on one relationship).
We need to take those 3 captured streams and create a denormalized model that we can store in elasticsearch - so effectively merging those 3 streams into one model.
The idea is was
debezium (kafka connect source) -> kafka streams (transformation / join) -> elastic search (kafka connect sink).
What is the best approach (if any) to model those in streams ? After reading through the docs the CDC events are basically a KTable since each event represents the complete change set for the given record.
Question is how to window / join them using streams.
thanks for any suggestions / help