-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[ArchBoard] Rename dequeueMessages to receiveMessages, enqueueMessage to sendMessages. Return with the suffix item #4457
Comments
The proposal is to change Would there be a similar change from |
@rickle-msft |
Note: This is called as recieve_messages in Python. |
In JS, I'm inclined to go with some variant of "receive messages" instead of "dequeue" similar to servicebus and eventhubs. |
The naming in the REST endpoint is "getMessages" so that aligns with this suggestion. XStore team agrees with using getMessages instead of dequeueMessages. Concern: it might be confusing/unexpected to developers that this makes a REST call if it's named getMessages (which they might assume is only accessing local data). @JonathanGiles, what do you think about this? |
The Java team is trending towards a naming convention where local operations drop any prefix, e.g. 'get', 'is', 'set' will not be present. Remote operations on the service client class would be the only place where prefixes would be used, and they would continue to be named as appropriate for the operation - in this case 'getMessages'. Even if we don't make this change, the proposal to use 'get' for a remote operation is fine with me. |
I'm fine with get/set for remote operations if local operations don't have a prefix (which is a change from what Storage currently has iirc). If local operations do also use get/set, then piggy-backing on what Scott mentioned, my concern with remote operations sharing get/set with local operations is that until now, our remote operations returned Response whereas now many of them return just T. So previously it should have been clear based on the return type wether getX was remote or local, but with just T, it really only furthers the confusion. |
@tg-msft @rickle-msft @rakshith91 @HarshaNalluru Have we reached an agreement on whether we want to move forward with this renaming? Otherwise I propose we close on this issue. |
We're about to start the next major round of API reviews. Let's all add this suggestion in the QueueClient APIs and let everyone hash it out there. |
Working on it. |
@sima-zhu can you update the title / issue content with the actual change now being tracked (given this issue is now 3 months old and contains a couple variations of the evolved thinking in API naming here) |
No description provided.
The text was updated successfully, but these errors were encountered: