Skip to content
Discussion options

You must be logged in to vote

Kafka provides no mechanism to "discard" records before deserialization; you could add a custom deserializer to return a null value and add a filter at the application level to discard the nulls.

But, yes, that should work, but you might need some trickery (e.g. examine the thread name) to make the discard decision at such a low level in the stack.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@garyrussell
Comment options

@garyrussell
Comment options

@ro0sterjam
Comment options

@garyrussell
Comment options

Answer selected by ro0sterjam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants