Saturday, March 28, 2020

gRPC Node.js & gRPC Web

@grpc
Deep Dive: gRPC Node - Michael Lumish, Google - YouTube
presentation by main maintainer of gRPC Node, 2018

There are two implementations,

1) one common core binary/native created by Google in C/C++ and wrapped for usage by JavaScript in Node.js, and used in many other languages (Python, Ruby, C# etc) as well.

2) second written in TypeScript, that re-implements (essential part) of gRPC.
The features are performance are less, but deployment is simpler.

they currently have very similar number of NPM downloads

grpc.io
gRPC – A high-performance, open source universal RPC framework

1) grpc - npm @NPM

github.com/grpc/grpc-node

2) @grpc/grpc-js - npm @NPM

github.com/grpc/grpc-node/tree/master/packages/grpc-js


grpc/grpc-web: gRPC for Web Clients

"gRPC-Web clients connect to gRPC services via a special gateway proxy: the current version of the library uses Envoy by default, in which gRPC-Web support is built-in."

using "proxy" on server side, translating REST requests from browser to gRPC

Getting Started with gRPC and JavaScript - Colin Ihrig, Joyent - YouTube

Colin Ihrig - Getting Started with gRPC and Node.js - nodejsday 2019 - YouTube

gRPC - Wikipedia

gRPC Packages

gRPC – Tutorials

No comments: