-
Notifications
You must be signed in to change notification settings - Fork 172
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
Outbox pattern #302
Comments
I think with change data capture, there's no need for a A new
I think a new
If that plugin works only for these fields or like, I'm afraid not. |
CDC is good, but we need to outbox to implement a Transactional outbox pattern(which takes app's events).
No, I'll get the outbox config, so the user can customize his own outbox collection. Ok, so I'll check it and add more details about the implementation here, what do you think? |
I wonder if there's any standard for the structure of outbox collection?
I've got a new idea about encoder. The kafka header thing should be configured inside kafka output plugin rather than encoder. So a new simple router and header support within existing kafka output seems more promising. What do you think? |
It does not have a standard, but all implementations are like each other: a collection(or table in other DBs) which contains all fields which we need to send to the Kafka(topic,key,value,headers), example of its implementation
Yes, what I got is:
I'm also thinking about which one can be better for an outbox pattern, extending gravity or extending mongo-kafka connector. |
yes if the consumer needed(don't want another pipeline to reshape data...)
yes.
No. I think modify the current kafka output is ok. Just add the ability to add headers from configured fields. So now we have several possible solutions
1 is the initial proposal. By the example provided, I'm also OK with this, but still prefer 3 since it's more general and not much more work. @ming535 any comments? |
I need to implement an outbox pattern using gravity. I need to capture the
create
operation on theoutbox
collection of our MongoDB database and send it as output to Kafka.My
outbox
collection has these fields:kafka_topic
,kafka_key
,kafka_value
,kafka_header_keys
,kafka_headers
As you see I need to set kafka key,value,topic,... using these fields in each created outbox document.
I'm thinking about implementing a new gravity output which do that for me, How do you think?
Are you ok with a new PR to add kafka_outbox as a new output plugin?
The text was updated successfully, but these errors were encountered: