Skip to content

Remove Service API from ServerImpl - #33

Merged
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:remove-service-from-server
Jan 27, 2015
Merged

ejona86 merged 1 commit into
grpc:masterfrom
ejona86:remove-service-from-server

Conversation

@ejona86

@ejona86 ejona86 commented Jan 22, 2015

Copy link
Copy Markdown
Member

This will resolve #21

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this interface buy us anything anymore? Do we expect it to grow?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It didn't really buy us much before either. I honestly don't know if we expect it to grow. It seems trashing the interface and renaming ServerImpl to Server would be fine. If we claim the interface served a purpose before, then I can add start(), shutdown(), etc to the interface. We can't do that on client-side because the interface is used for interception, but that isn't the case on server-side.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm fine keeping it for now ... we can always remove later.

@nmittler

Copy link
Copy Markdown

@ejona86 I took a first pass ... looks good!

@ejona86

ejona86 commented Jan 23, 2015

Copy link
Copy Markdown
Member Author

@nmittler I responded to your comments.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice simplification

@codefromthecrypt

Copy link
Copy Markdown

LGTM only nits or actions that could be taken later

@nmittler

Copy link
Copy Markdown

@ejona86 LGTM ... just address comments from @adriancole

@ejona86

ejona86 commented Jan 26, 2015

Copy link
Copy Markdown
Member Author

@adriancole, I've addressed or replied to all your comments. I think the only thing left is discussion of the API along with @nmittler.

@codefromthecrypt

Copy link
Copy Markdown

You sure did. Thanks for all the context. I know it is hard to enumerate
rationale via text, but you did a good job at it!

@nmittler

Copy link
Copy Markdown

@ejona86 LGTM, feel free to cherry-pick

@ejona86

ejona86 commented Jan 27, 2015

Copy link
Copy Markdown
Member Author

Okay, it seems both @adriancole and @nmittler are okay with the current API, but would still like it to be reduced in size/tweaked. We can have that become part of the discussion in #28, as long as it continues to make sense. As we tweak the API to ServerImpl, we can also try to keep it in sync with ChannelImpl at approximately the same time.

I'm going to go ahead and merge this change, but we won't be considering the API final. It simply is better to have Service gone than have a 100% perfect API at this point.

@ejona86
ejona86 merged commit aeeebb7 into grpc:master Jan 27, 2015
@ejona86
ejona86 deleted the remove-service-from-server branch January 27, 2015 17:23
@ejona86 ejona86 mentioned this pull request Apr 16, 2015
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Guava's Service from our immediate API

3 participants