grpc.jilles.fyi:50051 is a public gRPC endpoint that is all Cloudflare.
A raw TCP connection comes in at the edge, goes through a Worker's connect() handler
and a Durable Object, and ends at a normal gRPC server running in a Container.
Same TLS bytes, same HTTP/2 framing, and full bidirectional streams, from the client all the way to your code.
The demo is a race. Both lanes call the same Worker, the same Durable Object and the same Container, which runs identical business logic and checksum work on both ports. Any difference you see comes from the protocol and transport, not from the backend.
gRPC sends everything over one persistent, multiplexed HTTP/2 socket with protobuf. HTTP sends 200 separate JSON POSTs.
A single full-duplex gRPC stream, where frames and acks flow both ways at once, against HTTP POSTs carrying the same frames base64-encoded, one at a time.
30 batches of 80 telemetry events. Protobuf binary against UTF-8 JSON, comparing bytes on the wire and serialization cost.
Click any hop to see the code that runs there. On the gRPC lane, Cloudflare passes opaque TLS bytes through. Only the Container, your gRPC server, ever decrypts them.
Until now, everything that reached a Worker was an HTTP request. A connect() handler gets a raw, long-lived, two-way byte stream instead. That one change is what lets a real gRPC server work behind Cloudflare.
bytes sent as-isarena.proto, with clients generated for any languageThis is race [2] in slow motion. Each square is a 2 KB frame. On the left, gRPC keeps sending while acks are still coming back on the same stream. On the right, every frame has to wait for the previous round trip to finish.
Illustration only: in-flight window and RTT are simulated. Run the TUI for real numbers.
This is the actual TelemetryEvent from the demo. JSON repeats every field name in every message and turns the 256-byte binary sample into base64 text. Protobuf sends a small numeric tag for each field and the raw bytes.
The JSON size is measured live in your browser. The protobuf size is a field-by-field estimate (tag + length + value) for the same message, before HTTP/2 framing and compression.
message TelemetryEvent {
uint32 seq = 1;
string device_id = 2;
string region = 3;
int64 timestamp_ms = 4;
double cpu_pct = 5;
double mem_mb = 6;
uint32 rps = 7;
string status = 8;
repeated string tags = 9;
bytes sample_bytes = 10; // raw, no base64
}
The Workers platform has always started with a Request. With Inbound TCP, it can start with a socket instead. That brings a whole category of workloads to the platform that used to need a VM and a load balancer.
getByName() pins a connection to one Durable Object and its Container. That gives you per-tenant or per-session backends with no service discovery.