Skip to content

Support Kafka Streams built-in dead letter queue#179

Draft
philipp94831 wants to merge 7 commits into
masterfrom
feature/dlq
Draft

Support Kafka Streams built-in dead letter queue#179
philipp94831 wants to merge 7 commits into
masterfrom
feature/dlq

Conversation

@philipp94831
Copy link
Copy Markdown
Member

No description provided.

@philipp94831 philipp94831 self-assigned this Apr 15, 2026
final byte[] bytes = this.client.retrieveBytes(data, headers, this.isKey);
final T deserialized = this.deserializer.deserialize(topic, headers, bytes);
// remove all headers associated with large message because the record might be serialized with different flags
headers.remove(getHeaderName(this.isKey));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not happy about this change but it is necessary in order to make dlq work. dlq uses the most recent headers but the original bytes. Thus, the headers would be unavailable in dlq topic and we cannot deserialize the message. However, we would keep this headers for all down stream messages forever

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant