Skip to content
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

Switch to using WarpStream-compatible schema registry routes #949

Open
jlrobins opened this issue Jan 22, 2025 · 0 comments
Open

Switch to using WarpStream-compatible schema registry routes #949

jlrobins opened this issue Jan 22, 2025 · 0 comments
Assignees

Comments

@jlrobins
Copy link
Contributor

the GET /schemas route isn't implemented in WarpStream schema registry. Transition away from it in favor of two different layers of route calls and cached data.

Layer one:

  1. List subjects. Returns list of strings of subjects that have registered schemas. Cache this list of strings related to the schema registry id. This would be sufficient to use for topic characterization of being schema'd or not, as well as the toplevel view of contents of a schema registry, albeit w/o knowing the schema type or number of versions within.

Layer two:

  1. List versions under subject, then returning list of live version numbers for a single subject.

  2. Then with each subject name + version number pairing, loop over Get schema version given subject name, GET /subjects/{subject}/versions/{version} . Will return all of the binding metadata as well as the schema document. Gather up the interesting bits other than the schema document and cache this list of Schema object related to {schema registry id, subject} key. This is essentially the schema subject group construct we have in the codebase already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant