Skip to content

DelegatingByTopicSubjectNameStrategy #4127

@oteichmann

Description

@oteichmann

Expected Behavior

Provide an option to configure a value or key subject name strategy per topic via application properties. This should be possible to configure individually per topic (or topic pattern) in case you are working on larger micro services with multiple topics. It should work like the already existing DelegatingByTopicSerializer or DelegatingByTopicDeserializer.

Current Behavior

Currently there is only a global property used by all producers.

spring.kafka.producer.properties.value.subject.name.strategy: your.personally.preferred.SubjectNameStrategy

Context

I stumbled upon this problem when I was about to implement a micro service that had to produce events to topics with different strategies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions