I’ve been reading about various ways of doing RPC, though still haven’t started testing… but I am already quite lost.
Here is what I know so far, please correct me for where I’m wrong and other suggestions are very welcome.
- gRPC - Currently not available for OCaml, as there is no HTTP2 support
- Apache Thrift - seems to be officially supported by Apache, but really doubtful it will work in the browser
- piqi - this project seems to be quite silent since 2014. I asked here if it will work in the browser: https://groups.google.com/forum/#!topic/piqi/yjZA42ZXobc
- Cap’N Proto which here only seems to support JS in node.js, so probably it won’t work in the browser for OCaml either.
So what would you guys do if you were to implement something like this?
In general, this question can be simplified if we remove the Erlang from the equation… but then still, what would you do in order to implement RPC between native and in-browser OCaml of some sort?