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
[question] Better GRPC package name #379
Comments
Hi, do you mean package inside proto defintions? I suppose you can simply change it after copying? Or I am missing sth? |
Maybe it could be changed via a Version 3 ? Possibly with a migration enforced to all users who want to switch to version 3 |
Hm, this is interesting, I can't understand why changing package name in API proto definitions can lead to non-working API since I hope it's not included in network communication. Will try to check it out. |
@unikzforce you are right, GRPC uses package in RPC method names: like:
This means we can't simply fix this without breaking existing generated code. Centrifugo v3 is not planned in near perspective so forcing v3 release to fix this minor thing does not look like a good plan to me. An alternative is to create sth like |
Could you be more specific on what problem do you have with current naming? Do I understand right that setting
options to API proto definitions solves problem for your case? Or you still have |
Sorry for my delay. I didn't have any problem, Actually Your software rocks. And worked very well for me. you guys have created a universal package that can be used elsewhere. and it is unique. Like this: for example it is the content of so if you ever wanted to use So suppose I have an a protobuf file , and I wanted to embed It would be really more professional to import now every person in the world will just now that if he/she wants to use Suppose google wanted to introduce a new message called It's obvious that google would never choose If any individual entity or organization choose a unique namespace for itself, and use that as the package name for it's messages, then the conflicts would be less likely. |
My argument was not about the name of java packages, but it was about the name of protobuf file packages. |
@unikzforce thanks for description, the motivation is more clear to me now. Will consider changing this in Centrifugo v3 when it comes. Though at moment I can't say when v3 release happen. |
Going to rename it to |
Changing the package name will prevent others to fall on the error I had too. |
Done in v3 🎉 |
Could you please change the Proto package to something more specific than
package api;
?Something like
io.centrifugo
, for example ...Something related to your brand/organization?
In a code base with a lot of grpc dependencies, one could lose track of which package is for which organization.
The text was updated successfully, but these errors were encountered: