-
Notifications
You must be signed in to change notification settings - Fork 24
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
Interoperability with tonic #141
Comments
Yes, this library can be used with tonic. You can convert request message type to a You can also use |
Oh, great,
indeed works, thank you! To clarify the goal, i'm having a server that accepts dynamic messages with hundreds of fields of different types. These messages need to be inspected, and latency kept minimal. So afais So not sure that's the right issue to ask, but is there a way to add dynamic message to tonic code generation or some other way to decode client's request straight to dynamic message? Because your example seems to be related to grpc client, not server. |
Tried implementing a custom encoder but there's a trap, because it requires |
best I could get is having a typeid -> reflection name hashmap
and using type id of Decode generic type
and this requires wrapping dynamic message to implement a new method, so all this looks pretty dirty, but reading numerous articles about prost's serialization slowness, this avoids double de/serialization on each request, so might be fine |
Can Prost reflect be used together with tonic to inspect messages?
The text was updated successfully, but these errors were encountered: