The State of gRPC & RSocket in the browser, JavaScript

Popularity and Adoption

RSocket’s Ecosystem is Undeveloped in JavaScript

The gRPC-Web Spec

  • Supporting both HTTP/1.1 and HTTP/2.
  • Sending of gRPC trailers at the very end of request/response bodies as indicated by a new bit in the gRPC message header4.
  • A mandatory proxy for translating between gRPC-Web requests and gRPC HTTP/2 responses.

The Two Implementations

Feature Sets

Support for RSocket in JavaScript

rsocket-js

rsocket-rpc-js

Opinionated

Tooling

const request = new HelloRequest();
request.setName('John Doe');
helloServiceClient.sayHello(request).subscribe({
onComplete: (response) => {
console.log(`HelloService.sayHello response received with message: ${response.getMessage()}`);
},
onError: (error) => {
console.log(`HelloService.sayHello response received with error: ${error.name}`);
console.error(error);
}
});
syntax = "proto3";service HelloService {
rpc SayHello (HelloRequest) returns (HelloResponse) {}
}
message HelloRequest {
string name = 1;
}
message HelloResponse {
string message = 1;
}

Platforms

rsocket-flowable

Special thanks:

Sources:

Clear thinker. Difference maker. Problem solver.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to create dynamic forms in Angular 7 using FormControl

Angular HTTP request auto cancellation decorator

Angular 2 and Redux simplified

my title hihi

Pick the Top Memory Foam Mattress for yourfamily https://t.co/uGA3EAJSWC

I don’t know JS

Reusing Access Tokens in Firebase with React and Node

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Timothy Ivaikin

Timothy Ivaikin

Clear thinker. Difference maker. Problem solver.

More from Medium

Automating Your Code Quality — Considerations and Innovation

How to improve your APIs

How Code Structure Influences Culture and Work Habits — Scout Corps

Better Developer Tools