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

Retrieve schema registry URL #109

Closed
k20human opened this issue Aug 7, 2024 · 4 comments
Closed

Retrieve schema registry URL #109

k20human opened this issue Aug 7, 2024 · 4 comments

Comments

@k20human
Copy link
Contributor

k20human commented Aug 7, 2024

Hi,

How some of our applications and some usecases we don't have access to the URL of the registry and only have access to the registry client.

We need the URL of the registry, so I create a PR to add a getter to retrieve back this URL: #108

@riferrei
Copy link
Owner

riferrei commented Aug 7, 2024

Do you mind in detailing a bit more about this need?

Isn't the caller of the SchemaRegistry already aware of the URL, given it needs to provide a parameter to create an instance of it?

What is the use case here? One subsystem creates the instance, and the other consumes and this other requires knowing the URL of the registry?

@k20human
Copy link
Contributor Author

k20human commented Aug 8, 2024

In our case we have a New function that initialize all our dependencies of a component (a struct). This component has a registry client inside the struct.

Inside the New function we retrieve some configuration parameters like the schema registry URL. But we don't keep all our configuration parameters, they are only usefull to init all our dependencies.

But inside our component we sometimes need the URL to change the behavior of a feature. We can of course store the URL inside our struct but we prefer as less properties as possible if we can access it in another way.

I hope it's more clear :)

@k20human
Copy link
Contributor Author

k20human commented Aug 9, 2024

Thanks for the PR merge 🙏🏻

Is it possible to create a new tag please ?

@riferrei
Copy link
Owner

riferrei commented Aug 9, 2024

Done ✅

@riferrei riferrei closed this as completed Aug 9, 2024
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

2 participants