Skip to content

Question: Why DeDuplicationStrategy class is so specific? #101

@jmirc

Description

@jmirc

I developed a filtering feature on top of Kafka using flatbuffer. The filter uses headers to filter or not the message. The goal is to deserialize the payload only when the consumer accepts the message.
I finished yesterday to migrate my old spring-kafka library based on the version 0.8 to use this project and it works.

My question is:
A DeDuplicationStrategy has been created to filter the message is the message is a dupe. This strategy is great for the dedupe use case. However, this feature could be more generic to support many use cases.
My use case could fit perfectly in this strategy, however my use case is not a dedupe is a filter. So I decided to not use the DeDuplicationStrategy interface to handle this use case.

I would like to know if the DeDuplicationStrategy could be replaced by a generic interface that could support different strategies (dedupe, filtering or another use case) to not send the message to the listener.

I am hopping I am clear.

Thanks for your great work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions