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.

Question: Using the connect protocol for requests to a gRPC-Go backend

See original GitHub issue

Hello,

At clarifai, we’re already using grpc to expose our API using the native binary protocol. As I understand it, our backend team is using the golang grpc library from https://pkg.go.dev/google.golang.org/grpc to expose the service.

I’m evaluating the connect-web toolkit for building a typescript browser client for my team’s front end react app, and I have to say so far I’m really loving the fact that the code it generates is MUCH more idiomatic than what grpc-web produces.

I’d like to know if a connect-web TS client, using the connect transport, can send requests to such a backend, or would we have to make changes to our backend in order to accept/respond to requests from a connect transport. I was looking at your homepage at https://connect.build, and noticed the following, which suggests the connect protocol can interop with native grpc servers, but maybe I’m misreading it?

In addition to its own protocol, Connect servers and clients also support gRPC — including streaming!
They interoperate seamlessly with Envoy, grpcurl, gRPC Gateway, and every other gRPC implementation.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
timostammcommented, Sep 6, 2022

That is correct, connect-go does support “multiplexing”.

For example, the API for our schema registry serves the Connect protocol:

curl \
    --header 'Content-Type: application/json' \
    --data '{"query": "e", "pageSize": 10}' \
    https://api.buf.build/buf.alpha.registry.v1alpha1.SearchService/Search

But you can just as well hit the same endpoint with gRPC or gRPC-web clients.

0reactions
akshayjshahcommented, Nov 2, 2022

Closing this, as I think the question is answered. @alexandros-megas, let us know if we can help going forward. We also have an active Slack workspace.

If you connect with us on Slack, we’re also happy to chat in detail or arrange a conversation with any internal stakeholders.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gRPC: Main Concepts, Pros and Cons, Use Cases | AltexSoft
gRPC is a framework for implementing RPC APIs via HTTP/2. ... a single connection can send both requests and responses at the same...
Read more >
When to use gRPC over REST - Medium
While working on a backend project of mobile based food ordering application, We had to deal with volumes of real time data transactions, ......
Read more >
Basics tutorial | Web - gRPC
This tutorial provides a basic introduction on how to use gRPC-Web from browsers. By walking through this example you'll learn how to:.
Read more >
Question: gRPC Web with C++ backend · Issue #583 - GitHub
I am new in gRPC Web ! I already use the gRPC protocol and protobuf serializing in my C++ application as backend.
Read more >
Connect-Web: It's time for Protobuf and gRPC to be your first ...
If your backends are built with connect-go , you can use the Connect protocol to call them directly — no proxy required.
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