-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choosing Schema Registry Subject Name Strategy #85
Comments
Hey @enamrik, thanks for pointing it out. I am thinking about exporting the whole functionality to JS. Please upvote the issue. I'd also be happy to see and review contributions. I'm currently working on fixing a bug with SASL and TLS. See the project board for updates, as I added this issue to the todo list. There are other issues you might be interested: |
Hi @mostafa, I gave it shot and tried adding support for subject name strategies: #88. I tried to keep the change footprint small but I do have some suggested refactorings if you're interested. Please let me know what you think. I'm also exploring another need I have which is for the consumer to support the special offsets i.e. -1 = latest, -2 = earliest. I have the changes and test on a branch https://github.com/enamrik/xk6-kafka/blob/handle_special_offsets/consumer.go#L40. Wanted to get your thoughts on this first PR before attempting a PR on special offsets. |
@enamrik Awesome! Thanks for your contribution. 🙏 |
Yes, now that I've added the features I needed for work and I'm more familiar with the codebase, I'd love to help on issues. I'll take a look at those you mentioned. |
Released in v0.11.0. |
Problem:
There are different naming strategies out there for naming the subject of a schema as seen here.
The schema registry implementation in this library hardcodes the TopicNameStrategy strategy as seen below.
xk6-kafka/avro.go
Line 23 in 8cceb22
In my current project, we use a different strategy RecordNameStrategy. This is because we have topics that can contain messages of different schemas.
Request:
Can we consider allowing the user to pass a method that builds the subject name? This way the user can implement which ever naming strategy they use.
The text was updated successfully, but these errors were encountered: