Read original
cloudflare-blogproducts88

Workers RPC now works across Python and JavaScript

AI Summary

Cloudflare announced that Workers RPC can now operate across Python and JavaScript Workers. Developers can call methods implemented in a Python Worker from a JavaScript Worker, and vice versa, without defining schemas or adding dependencies. Objects can be shared across the two languages, including calling methods on Python objects from TypeScript. The feature extends Workers RPC, introduced two years ago on Cap’n Proto RPC, and follows last year’s browser-to-server work through Cap’n Web.

Why it's worth reading

This update changes how multilingual Worker systems can be composed: Python and JavaScript services can exchange callable objects through the existing Workers RPC model without introducing a separate schema or API layer.

Deep Read

What happened

Original facts: Cloudflare published this announcement on 2026-08-03, stating that Workers RPC now supports bidirectional calls between Python Workers and JavaScript Workers. Methods and objects can be shared across the two languages, and remote object methods can be called from the other runtime.

Core technology

Original facts: Workers RPC is built on Cap’n Proto RPC. Cloudflare describes it as a “JavaScript-native RPC” system that does not require developers to define schemas or add dependencies. The system supports returning live objects, functions, and streams. The cross-language release follows earlier browser-to-server work introduced through Cap’n Web.

Key evidence & numbers

Original facts: Cloudflare says Workers RPC was introduced two years ago and browser-to-server support was introduced last year. The supplied abstract specifically mentions Python Workers, JavaScript Workers, and calling Python object methods from TypeScript. It provides no benchmarks, latency figures, compatibility matrix, or complete code sample.

Why it matters

Analysis: Cross-language communication commonly requires custom APIs or language-neutral formats such as protobuf. If the announced behavior works as described, Workers applications can compose Python and JavaScript components while reducing some interface glue and schema-management overhead.

Practical impact

Analysis: A team could deploy Python-oriented logic as a Python Worker and invoke it directly from a JavaScript or TypeScript Worker, with the reverse direction also available. Before production adoption, teams should test object lifetime, error propagation, stream behavior, deployment configuration, and debugging workflows.

Limitations & uncertainty

Original facts: The supplied abstract ends mid-sentence after mentioning TypeScript, so it does not establish the full API contract, runtime requirements, regional availability, pricing, performance, or security boundaries. Unverified inference: Shared-object and cross-language method semantics may be constrained by type mapping, serialization rules, or asynchronous behavior; the announcement alone cannot establish universal production suitability.

Original sources

Tags

CloudflareWorkersRPCPythonJavaScriptCap’n ProtoCap’n Web