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

feat: Complete all RPC kinds #28

Merged
merged 1 commit into from
Dec 12, 2023
Merged

feat: Complete all RPC kinds #28

merged 1 commit into from
Dec 12, 2023

Conversation

lhchavez
Copy link
Contributor

@lhchavez lhchavez commented Dec 11, 2023

We have three of the four gRPC RPC kinds (rpc, stream, subscription).

This change adds the final RPC kind: upload (client-stream, single
message response). It also adds the option of adding an init type
to an RPC, where we can send a message of another schema before the main
stream, which is a very common pattern used in filesystem (i.e. open
file for writing, where the first message is the path and the other
messages are the chunks) and collaboration (i.e. first message is the
channel name and the rest of the bidirectional messages are the actual
stream).

@lhchavez lhchavez requested a review from jackyzha0 December 11, 2023 03:50
@lhchavez lhchavez force-pushed the lh-rpc-supremacy branch 3 times, most recently from 196c170 to ae995ec Compare December 11, 2023 13:38
Copy link
Contributor

@bradymadden97 bradymadden97 left a comment

Choose a reason for hiding this comment

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

Looking good - one thing to check on streams

@jackyzha0
Copy link
Member

oh no! i think my previous review comment got lost but:

could you add a test to __tests__/handlers.ts for the test utils you added as a sanity check that they work as intended? lgtm otherwise

We have three of the four gRPC RPC kinds (rpc, stream, subscription).

This change adds the final RPC kind: upload (client-stream, single
message response). It also adds the option of adding an `init` type
to an RPC, where we can send a message of another schema before the main
stream, which is a very common pattern used in filesystem (i.e. open
file for writing, where the first message is the path and the other
messages are the chunks) and collaboration (i.e. first message is the
channel name and the rest of the bidirectional messages are the actual
stream).
@lhchavez lhchavez merged commit 4360cc8 into main Dec 12, 2023
@lhchavez lhchavez deleted the lh-rpc-supremacy branch December 12, 2023 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants