We've added JavaScript-native RPC to Cloudflare Workers
Apr 5, 2024Kenton Varda

Summary
Introduced a JavaScript-native RPC system for Cloudflare Workers, enabling direct method calls between Workers and Durable Objects. This system supports structured clonable types, functions, objects with methods, and byte streams, with zero-latency communication when calls stay within the same thread. It also supports pipelining for multi-step operations within a single network round trip and is built on an object-capability model, leveraging Cap'n Proto under the hood but without requiring schemas.