JavaScript native RPC added to Cloudflare workers
blog.cloudflare.com
blog.cloudflare.com
I was exploring using capnp to enable RPC on browser-to-server applications. I ended up using rust library for capnp and it actually worked! With the same bi-directional RPC.
I dropped it because it relied on managing rust and capnp as the end user. Not the best DX, at least at the moment.
I imagine they are doing something similar but with an extra layer of abstraction, such that any JS can just use the same interface already implemented in C++?
Structured clone with function support is amazing as well.
I've always thought there was market for user-made bindings on Cloudflare. I'm sure some amazing things are going to come from this. Personally I already have some ideas.
Cloudflare is moving fast with workers lately, and it's cool, but my DX has been faulty, edge cases will fail. The last one: the custom domain for the worker is doing a 301 from https to http for no reason before failing on me.