gRPC client and service without Protobuf
See original GitHub issueAlthough solved partially with #1703, but it’d be nice if we can let our users use an alternative marshaller instead of Protobuf while still using gRPC-Java API, as demonstrated in this blog post by @carl-mastrangelo: https://grpc.io/blog/grpc-with-json/
@anuraaga told me it is already possible on the server side since we allow a user to mount any BindableService
s, but client-side needs some more work like exposing ArmeriaClientCall
to a user.
I’d also be nice if we provide some working example, which is similar to grpc-gateway
with some twist, e.g. using Jackson’s JsonNode
tree as a message.
(Initially requested by @okue)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:5 (2 by maintainers)
Top Results From Across the Web
C# gRPC service without proto file - Stack Overflow
Alright, looks like I found the answer https://github.com/grpc/grpc-dotnet/issues/68 protobuf-net.Grpc seems like the lib I was looking for.
Read more >gRPC + JSON
gRPC lets you use encoders other than Protobuf. It has no dependency on Protobuf and was specially made to work with a wide...
Read more >Code-first gRPC services and clients with .NET - Microsoft Learn
To call a gRPC service using a code-first client: Add a protobuf-net. Grpc package reference.
Read more >Getting Started with ASP.NET Core and gRPC
What is gRPC? What is Protocol Buffers. gRPC and .NET example. The gRPC service. The gRPC client; ASP.NET Core setup ...
Read more >Building a gRPC Server in .NET - Sahan Serasinghe - Tech Blog
Normally, when a team makes a gRPC service they will make the protobuf files available if you are integrating with them. So, without...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Eventually like this:
It shouldn’t, we’d expose a new accessor using the gRPC interfaces without exposing classes.