Reputation: 859
Provided a use case:
A stream processing architecture; Events go into Kafka then get processed by a job with a MongoDB sink.
Database name: myWebsite
Collection: users
and the job sinks user
records in the users
collection.
users
collection for changes and, at every change, will produce events into Kafka on the topic dbserver1.myWebsite.users
? Assuming dbserver1
is the name of the connector.dbserver1.myWebsite.users
topic and react to these events?I would like a some sort of confirmation of my understandings so far. Thank you!
Upvotes: 2
Views: 1206
Reputation: 1976
the answer are simple
before
) and new (after
) values. In case of INSERT
only after
is present in case of UPDATE
both before
and after
are present (Postgres need a special setting for it) and in case of DELETE
only before
is present.Upvotes: 5