Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Version 0.2.0#12

Merged
teodordelibasic-db merged 5 commits intomainfrom
v0.2.0
Jan 28, 2026
Merged

Version 0.2.0#12
teodordelibasic-db merged 5 commits intomainfrom
v0.2.0

Conversation

@teodordelibasic-db
Copy link
Copy Markdown
Contributor

@teodordelibasic-db teodordelibasic-db commented Jan 28, 2026

What changes are proposed in this pull request?

  • Upgrade to Rust SDK v0.4.0
  • Add new non-blocking ingest APIs (ingestRecordOffset, ingestRecordsOffset, waitForOffset)
  • Add experimental Arrow Flight support (not supported by server, feature flag)
  • Fix user agent to zerobus-sdk-ts/0.2.0
  • Reorganize examples into json/, proto/, arrow/ directories

Benchmark Results

Rough benchmarking results against a local server for 1M records:

Record Size TS SDK Rust SDK Overhead
~100 bytes 44K rec/s 50K rec/s 12%
1 KB 29K rec/s 50K rec/s 72%
2 KB 25K rec/s 48K rec/s 94%

Why the gap widens with larger records

NAPI-RS requires copying buffers from JS to Rust:

let vec: Vec<u8> = buffer.to_vec();

The Rust SDK needs Vec<u8> ownership for async gRPC. A future optimization would change the Rust SDK to accept bytes::Bytes, enabling zero-copy:

// Zero-copy possible with Bytes
let bytes = Bytes::from(buffer.as_ref());

How is this tested?

  • Unit tests pass
  • Integration tests pass
  • Examples work

Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Comment thread test/unit.test.ts
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
@teodordelibasic-db teodordelibasic-db added this pull request to the merge queue Jan 28, 2026
Merged via the queue into main with commit 17f6196 Jan 28, 2026
9 checks passed
@teodordelibasic-db teodordelibasic-db deleted the v0.2.0 branch January 28, 2026 23:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants