how to configure debezium fields sent on update events (mongo connector)

非 Y 不嫁゛ 提交于 2019-12-24 20:59:05

问题


I want to use debezium mongo connector to:

-> get events from mongo

-> get them in my kafka

-> read from kafka

my issue is, when debezium gets update events from mongo it only sends the updated fields:

The value of an update change event on this collection will actually have the exact same schema, and its payload will be structured the same but will hold different values. Specifically, an update event will not have an after value and will instead have a patch string containing the JSON representation of the idempotent update operation.

and I was wondering if i can configure it somehow cause there are some fields I would like to get with the updates events.


回答1:


you should be able to solve the problem using Kafka Streams - in a similar (simplified) way as in this case https://debezium.io/blog/2018/03/08/creating-ddd-aggregates-with-debezium-and-kafka-streams/



来源:https://stackoverflow.com/questions/53911479/how-to-configure-debezium-fields-sent-on-update-events-mongo-connector

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!