The Kafka side of grpc-over-datachannels had a naming
problem. We shipped kafka-native, kafka-grpc, and
kafka-proxy, and even we had to stop and think about
which one a given user needed. 0.48 and 0.49 are the
cleanup: one Kafka implementation, three artifacts with
sharp boundaries, and generated wrappers for every
language we support.
The model.
-
kafka-native— the direct Kafka protocol client library. Embed it in your process (Rust, C, Python; crates.io + PyPI). No gRPC, no proxy. -
kafka-grpc— generated client stubs for thegrpcdc.kafka.v1gRPC service, per language ecosystem. This is how browsers (and any language that prefers a service) reach Kafka. -
kafka-proxy— the runnable gateway that serveskafka-grpcclients and speaks the native Kafka protocol to Apache Kafka or Redpanda.
Browsers never use kafka-native: a browser cannot open
a raw TCP connection to a broker, and Kafka does not
speak WebRTC. Browser Kafka is kafka-grpc through
kafka-proxy, full stop. KAFKA.md now opens with a
"Which Kafka package do I need?" decision guide, and
every Kafka README states what it is and what it is not
in its first screen.
The split (0.48). Under the hood there is exactly
one Kafka implementation, in Rust. It used to live in a
single crate that exported both the direct client and
the gRPC service layer, which is how the confusion
started. It is now three components:
-
kafka-native— the protocol +Brokerclient. -
kafka-service—KafkaService,StreamsService, and the C ABI (libkafka_native), new on crates.io in this release. -
apps/kafka-proxy— the gateway binary.
The generated public repos match: kafka-native ships
only its two crates, kafka-proxy ships only the proxy
crate, and releasegen now fails the build if a
boundary is violated (a proxy binary in the native
export, client sources in the proxy, and so on).
Native everywhere (0.49). Every language wrapper is
a thin generated FFI shim over libkafka_native —
method name plus protobuf bytes in, protobuf bytes out.
0.49 adds the four that were missing:
- Kotlin and Scala, through the same JNI shim as Java;
- Zig, through the C ABI directly;
- Lua, through a small new C bridge module.
Each has a TestKafkaNative roundtrip in the
make test-kafka gate (create topic, produce three
records, consume them back, verify offsets): 14 native
legs, all green against a real broker.
Packaging. Node finally has a first-class native
package: @browser-grpc/kafka-native on npm, with
per-platform prebuilt libraries (linux-x64, linux-arm64,
darwin-arm64) so npm install just works. For the other
wrappers, per-platform libkafka_native tarballs are
attached to every kafka-native GitHub release, and
KAFKA.md documents exactly how each language loads it.
The Kafka implementation did not change. What changed
is that a human landing on any of these packages can now
tell — in the first screen — whether they are holding a
library, a client stub, or a gateway, and which one they
actually need.
Top comments (0)