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

GRPC endpoint clean up. Add missing protocol in doc #5428

Merged
merged 2 commits into from
Mar 1, 2023
Merged

Conversation

GuanLuo
Copy link
Contributor

@GuanLuo GuanLuo commented Feb 27, 2023

No description provided.

@@ -61,7 +61,7 @@

#define REGISTER_GRPC_INFER_THREAD_COUNT 2

namespace triton { namespace server {
namespace triton { namespace server { namespace grpc {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job cleaning this code up!

What is the purpose/benefit of the grpc namespace? I don't see where it's changing anything beyond requiring the addition of "::" before each grpc namespacing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed the part of dropping GRPC prefix from the objects, but the idea is to group correlated objects in the form of namespacing. Otherwise, we need to do the grouping via prefixing. If you look across all endpoints, you will see that all endpoint live under triton::server namespace, and to distinguish the names, there is prefix with the endpoint types (i.e. HttpXXX, GrpcXXX).

Another thing is that if you are modifying within GRPC endpoint, you can refer to objects without the mention of "GRPC", the endpoint type is implied in this context.

Copy link
Contributor

@dyastremsky dyastremsky Feb 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, that makes sense. Thanks for explaining the reasoning!

Will leave this conversation up in case it's helpful for anyone else.

dyastremsky
dyastremsky previously approved these changes Feb 27, 2023
@tanmayv25
Copy link
Contributor

I missed the part of dropping GRPC prefix from the objects, but the idea is to group correlated objects in the form of namespacing.

This is still pending.

Copy link
Collaborator

@rmccorm4 rmccorm4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactoring 🎉

@GuanLuo GuanLuo merged commit 71243fb into main Mar 1, 2023
@GuanLuo GuanLuo deleted the gluo-grpc branch March 9, 2023 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants