3 ms·
> For JavaScript based projects This is viable for personal projects and things that exist in a vacuum. Suppose you hit a performance bottleneck with your bac
by diceduckmonk 4y ago
> For JavaScript based projects
This is viable for personal projects and things that exist in a vacuum.
Suppose you hit a performance bottleneck with your backend and want to migrate to Go
Or, if you want talk to your JavaScript background from a native mobile client. Or if another team or customer wants access to the API and not using JavaScript.
gRPC solved this problem by having Protobuf as the many-to-many translation layer. Client stubs and backend service stubs in a variety of languages are autogenerated. Telefunc is a subset of this wherein you define the Interface in TypeScript instead of protobuf. With gRPC you also get a binary encoding over the wire. Maybe the effort of the project could have been building on top of gRPC (which is not necessarily coupled to protobuf) and adding automatic codegen tooling for JavaScript.