Skip to content

Support for different header types #164

Closed

Description

@masongup-mdsol

While I was working with the GenericSingleObjectReader and GenericSingleObjectWriter objects to read and write the Kafka messages that the other tools in my company are using, I noticed that they are currently hard-coded to use a specific header fingerprint format: reader, writer. The messages that I am working with use an AWS Glue Schema Registry and the corresponding header format on messages.

As a result of this, to handle these messages, I have to write a wrapper for the reader which reads out the Glue schema UUID manually, strips out those bytes, and adds on the header that the library expects, and for the writer that strips out the library-generated header and generates a new Glue header for the message. This all seems cumbersome to me. Are there any plans and/or interest to support either completely bare Avro data or proper interpretation of other types of message headers?

Activity

  1. martin-g commented on Mar 18, 2025

    @martin-g
    Member

    Would you like to send a PR ?

  2. masongup-mdsol commented on Mar 19, 2025

    @masongup-mdsol
    ContributorAuthor

    I'm open to building a solution. It seems complex enough that I'd like to discuss some possible designs to fix the issue though. I would expect we would want to provide a way to support other message header types without making API changes that would break current users.

  3. martin-g commented on Apr 14, 2025

    @martin-g
    Member

    I'm closing the issue since there is no activity for almost a month now.
    Please refer to it if you decide to send a Pull Request with an improvement!

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

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