You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Figure out what names we want for Client Foos vs Server Foos #23
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.
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.
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.
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.
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!" :)
Activity
nmittler commentedon Jan 27, 2015
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.
ejona86 commentedon Jan 27, 2015
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.
nmittler commentedon Jan 27, 2015
That would seem to me to be an advantage of adopting that API ... WDYT?
ejona86 commentedon Jan 27, 2015
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.
nmittler commentedon Jan 27, 2015
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!" :)
nmittler commentedon Apr 28, 2015
@ejona86 should we just close this? If we want to pick this discussion back up we could do it in another issue. WDYT?
ejona86 commentedon Apr 28, 2015
No, we still need it. We aren't consistent at the moment.