Skip to content

How to get the schema subject from a message? #297

Open
@Matan-Yadaev-Forter

Description

@Matan-Yadaev-Forter

I have a service that publishes messages to a queue (not Kafka), and these messages are encoded using a schema from the Schema Registry.

On the consumer side, I want to validate that the message was encoded using a schema subject that the consumer knows and supports.

Extracting the schema ID is straightforward (bytes 1-4 of the message), but I couldn't find an API that allows retrieving the subject associated with a given schema ID.

Is there a recommended way to achieve this? Any ideas or best practices?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions