question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gRPC client and service without Protobuf

See original GitHub issue

Although 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 BindableServices, 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:open
  • Created 4 years ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
trustincommented, Feb 12, 2020

Eventually like this:

ClientCall call = Clients.builder(...).....build(ClientCall.class);
1reaction
anuraagacommented, Feb 12, 2020

It shouldn’t, we’d expose a new accessor using the gRPC interfaces without exposing classes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found