Next: 2. Architecture.
persistent:// topic, partitioned or not, is used with the same API, and keys keep their v4 key-to-partition routing. This is also how pulsar-rs users move to this client.apache/pulsar-client-rust, released through the ASF, and kept in step with the spec's change process (PIP-494).The first release covers the required core, the migration bridge and the producer policies that real workloads need. Everything else is built on top of that.
| Area | Initial | Notes |
|---|---|---|
| Layout tracking, routing, segment-gone retry (C1–C4) | Yes | 6 |
| Producer: dedup, access modes, flush, close (C5, C6) | Yes | |
| Stream consumer, including the consumer side of entry-bucketing (C7) | Yes | key-shared §9 makes this side mandatory. |
| Queue consumer (C8) | Yes | |
| Checkpoint consumer, ungrouped and grouped (C9) | Yes | |
| MessageId and Checkpoint encoding (C10) | Yes | Java's byte format (7). |
| Schemas (C11) | Yes | Bytes, string, primitives, key/value, JSON and Avro first, then the rest (7). |
| Auto-creation, error model, resource lifetime, feature gating (C12–C15) | Yes | |
| Migration bridge | Yes | Goal 2. |
| Batching with producer-side entry-bucketing | Yes | Every entry uses the batch format from the start. Batches hold one message at first, then several messages of one bucket (5 §2, Plan). |
| Compression | Yes | LZ4, ZSTD, ZLIB and Snappy. |
| Authentication | Token and mTLS first, then OAuth2 client credentials | 4 |
| Dead-letter policy | Soon after | Optional capability. |
| Transactions | Later | Optional capability. Needs the TC discovery watch (wire-protocol §8). |
| Namespace subscription | Later | Optional capability (client-api §4.4). |
| End-to-end encryption, chunking | Later | Optional capabilities. |
The client talks only to brokers that advertise supports_scalable_topics in CommandConnected, which means Pulsar 5.0 or later. C15 forbids sending scalable-topic commands to any other broker (compatibility §3).
This also applies to the migration bridge: a persistent:// topic is resolved through CommandScalableTopicLookup too (compatibility §1). So “works on existing topics” means existing topics on a 5.0 broker. On an older broker, the first create or subscribe fails with a typed error when it opens the layout watch, as in the Java client.
There is no fallback for brokers before 5.0. Applications on older brokers upgrade the broker first, or keep using a classic client until then.
Cargo.toml and checked in CI.Once the Rust SDK is proven, it can become the core that other language clients wrap, possibly with a classic-API crate. The design keeps this possible without building it now: