-
Notifications
You must be signed in to change notification settings - Fork 6
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
More descriptive commands #21
Comments
I may be overthinking here, but I am starting to think that having descriptive commands is very good but not in this ^ way, as the users aren't supposed to know how the "reading" is done, or better put they don't care. So instead of having a Maybe only actual pub/sub services like kafka would have it differently -- e.g. Feedback much appreciated for this :) |
I think that more descriptive commands make sense if the service registry supports multiple ways of interaction. In that case the user might have some preference on how the service registry is consumed. If there's only one way to interact with the service registry then yes, I agree there's no need to expose the low level details. |
Yes I agree. But even then the alternative method would be to have options, I.e --poll. To be more clear, if service directory provided a way to watch changes via grpc streams, then I would have that as default and then users could opt for polling via --poll, although I would remove the polling entirely in that case tbh. Unless they do provide some other ways to do that with "external" methods, I.e if service directory decided to provide watching via subscription to a Google pub/sub reserved topic, then in that case I would still rather have it as subscribe pubsub rather than watch servicedirectory |
I think consistency ("descriptive commands") makes it less necessary to consult the documentation for quick starting, and that is a good thing. Users with advanced requirements should do the work to read the docs, check the defaults, and customize behavior to their liking. I think Alan Kay's principle (when designing the Smalltalk language) which was also picked up by Perl's author Larry Wall should be guiding us in general: "Simple things should be simple, complex things should be possible". |
The reader will be updated with more descriptive commands:
reader poll servicedirectory
instead ofreader servicedirectory
reader subscribe ...
reader watch ...
The text was updated successfully, but these errors were encountered: