Skip to content

Figure out what names we want for Client Foos vs Server Foos #23

Closed

Description

@ejona86

We have Call on both Client and Server. When adding the server, we chose ServerCall as the name of the server-side Call, and discussed renaming the client-side to ClientCall. ClientInterceptor was named based on this idea. However, the rename hasn't happened yet and now some have suggested having the Client names simply lack "Client" (so it would remain "Call"). It seems it has simply been too long since the original discussion for us to remember what was decided.

We need to decide to either prefix Client with Client and Server with Server or only prefix Server with Server. After the decision, whatever needs fixing needs to be fixed.

Note that in the transport we must have ClientStream prefixed with Client, since Stream is a shared interface between Client and Server.

Activity

  1. nmittler commented on Jan 27, 2015

    @nmittler

    Eric, if we adopted the reactive streams API would some of the differences between client and server at the API-level disappear? I suspect not entirely, but it's probably worth some thought ... it would be great if "Call" (or something else) was used on both ends.

  2. ejona86 commented on Jan 27, 2015

    @ejona86
    MemberAuthor

    Based on your preliminary designs, it seemed that we would have "producer" and "consumer" classes/interfaces that would possibly just be swapped between client and server. So yes, it is possible this just goes away to some extent.

  3. nmittler commented on Jan 27, 2015

    @nmittler

    That would seem to me to be an advantage of adopting that API ... WDYT?

  4. ejona86 commented on Jan 27, 2015

    @ejona86
    MemberAuthor

    Yes, but I strongly question how much concrete benefit we would get from it. The only thing I can think of that would make use it is tying client and server directly together without Channel/Server during testing.

    Earlier in the API design we said we weren't going to limit ourselves to using the same API on both sides because of its limited value and strong restriction. I think that is still true. If we can get away with using the same API, great, but it shouldn't limit the design and there are many other attributes of an API that are more important.

  5. nmittler commented on Jan 27, 2015

    @nmittler

    Agreed, having the same interfaces on client and server is a non-goal. Just thought I might try to complicate this discussion by shouting "Reactive Streams!" :)

  6. self-assigned this
    on Apr 22, 2015
  7. nmittler commented on Apr 28, 2015

    @nmittler

    @ejona86 should we just close this? If we want to pick this discussion back up we could do it in another issue. WDYT?

  8. ejona86 commented on Apr 28, 2015

    @ejona86
    MemberAuthor

    No, we still need it. We aren't consistent at the moment.

  9. added this to the 0.8.0 milestone on May 19, 2015
  10. locked as resolved and limited conversation to collaborators on Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions