Type safe proto clients and servers #435
Mirko-von-Leipzig
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Generally, I like this approach - but a few questions:
There would still be generated code, it would just not be exposed publicly - right?
My understanding was that this is now happening anyway - but maybe if we go with the proposes approach we limit the ability to do something clever here in the future? Also, one other question: would we still be able to have streaming API endpoints with this approach? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
proto
crate provides the generated rpc client and server implementations, and conversions betweenmiden-base
and the generated protobuf types.Should we take it a step further and wrap the various client and servers, to hide the protobuf types entirely? The wrappers would essentially just perform the conversions.
This has a couple of benefits
proto
, particularly no generated codeand downsides
Beta Was this translation helpful? Give feedback.
All reactions