Skip to content

Support RecordNameStrategy for schema registry #201

@th0ger

Description

@th0ger

The schema registry support introduced in #51 states that

The schemas must follow a naming convention with the pattern -value. docs

This -value suffix is known at the TopicNameStrategy which is the default "Subject Name Strategy", see Understanding Schema Subjects. The other stategies are RecordNameStrategy and TopicRecordNameStrategy.

I would like the kafka input plugin to support all naming strategies.

Subject Name Strategy is required by producing clients that need to autogenerate subject/version on write. On the other hand, consumers that read messages normally looks at the schema id in the start of message, and use this id to retrieve the schema from the registry. (The client will cache this schema.) Consumers do not care about the subject name or the naming strategy that may have been used to generate it. Please correct me if I misunderstood something.

The -value dependency is implemented in the check_for_schema_registry_connectivity_and_subjects. Maybe you can lift this check to implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions