menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Using gRPC...
source image

Dev

7d

read

354

img
dot

Image Credit: Dev

Using gRPC in React the Modern Way: From gRPC-web to Connect

  • This article explores using gRPC in React projects and interacting with backends, implementing CRUD service with React + Rust + Go.
  • Key concepts like Protobuf, RPC, gRPC, gRPC-web, and Connect are distinguished with their features and implementations.
  • Tech stack includes React, TypeScript, Vite, Rust + tonic for gRPC backend, Go + connect for Connect backend, and Protobuf files.
  • Usage of envoy as a proxy for gRPC-web support due to limitations in JavaScript's fetch API in handling HTTP/2 capabilities.
  • Handling proto files and gRPC communication involves Rust side with Tonic and frontend complexities with official gRPC-web and protobuf-ts.
  • Alternative solutions like bufbuild + connect for a more modern approach without complex protoc commands are introduced.
  • Go connect server implementation using Go connect-go for a more advanced Connect protocol communication.
  • Summary emphasizes distinguishing Protobuf and gRPC, proper package installations, and the role of proxy services like envoy.
  • Fun facts include minimizing global installations, frontend tool installations, and Go tools needed for a streamlined development process.

Read Full Article

like

21 Likes

For uninterrupted reading, download the app