Skip to content

cleanup / bugfix: replace hand-rolled Kafka wire protocol with franz-go's kmsg#132

Merged
klaudworks merged 1 commit intoKafScale:mainfrom
klaudworks:kmsg-wire-protocol
Mar 3, 2026
Merged

cleanup / bugfix: replace hand-rolled Kafka wire protocol with franz-go's kmsg#132
klaudworks merged 1 commit intoKafScale:mainfrom
klaudworks:kmsg-wire-protocol

Conversation

@klaudworks
Copy link
Collaborator

@klaudworks klaudworks commented Mar 3, 2026

Replaces our custom Kafka wire protocol encoding/decoding with kmsg types from franz-go. Net deletion of ~6,900 lines.

We maintained a full set of custom request/response structs and hand-written binary encoders/decoders for every Kafka API we support. This was effectively reimplementing what kmsg already does.

This also fixes compatibility issues with some Kafka clients that failed on unsupported protocol versions due to our incomplete version handling.

@klaudworks klaudworks requested a review from novatechflow March 3, 2026 15:35
@klaudworks klaudworks force-pushed the kmsg-wire-protocol branch from 1a06c1e to 40d93f7 Compare March 3, 2026 15:50
@klaudworks klaudworks changed the title Replace hand-rolled Kafka wire protocol with franz-go's kmsg cleanup / bugfix: replace hand-rolled Kafka wire protocol with franz-go's kmsg Mar 3, 2026
Copy link
Collaborator

@novatechflow novatechflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @klaudworks - that was on my ToDo list!

@klaudworks klaudworks merged commit dfa5c85 into KafScale:main Mar 3, 2026
9 checks passed
kamir added a commit to kamir/kafscale that referenced this pull request Mar 5, 2026
Align all LFS modules and test files with the kmsg type aliases
introduced in upstream PR KafScale#132. Updates field names (Topic, Partition,
Leader, Replicas, ISR, TimeoutMillis, TransactionID, Generation) and
replaces removed protocol helpers in encoding/request tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants