-
Notifications
You must be signed in to change notification settings - Fork 37
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
Kafka Tombstone with Reactive Messaging #155
Comments
You can do:
Same with an emitter (just use |
Hi @cescoffier . Thank you for the answer. You mean non-standard io.smallrye.reactive.messaging.kafka.Record? I try this, stay tuned. |
Hi @cescoffier . Finally I've got it even though it was little bit tricky. It works with this snippet:
But this feels for me as a spec-loving guy like a workaround, because I have to use some vendor (smallrye) specific stuff, especially the Record class, to get a null value into my payload. I think it would be a nice Idea to add some ability to send NULL-Payload, like or or How are your thoughts on this? How can we achieve this? |
As you use MEtadata already, you can achieve the same using the Note that
|
What I meant is to enhance the spec MP reactive messaging in one of the upcoming releases. Of course, that is probably not only a pull request ( I have absolutetly no idea, what effort is needed for a addition to the spec). |
Hi there.
Currently I am implementing a Kafka-Message-Publisher using mp reactive messaging.
Behind the scenes I use quarkus which comes with the smallrye implementation of the spec.
Our Kafka Topic is configured to "compact" which generally means, that the most recent message related to a given ID will be kept without being deleting by the kafka system.
Now I have the problem to delete the recent message which means to get rid of the last message of that ID.
For this purpose the kafka Guidelines recommend to send a so called "Tombstone", which is a Message with the ID in the Metadata and a NULL-Message.
And the NULL-Message is the problem: Due to the spec of the Emitter I use the message must not be null:
Are there any thoughts or even solutions on that?
The text was updated successfully, but these errors were encountered: