Skip to content

Refactor and reorganize internals to make relay primitives resuable packages#40

Open
knadh wants to merge 2 commits intomainfrom
pkg
Open

Refactor and reorganize internals to make relay primitives resuable packages#40
knadh wants to merge 2 commits intomainfrom
pkg

Conversation

@knadh
Copy link
Copy Markdown
Contributor

@knadh knadh commented Mar 6, 2026

Context: To build services that can consume from Kafka sources and transform+write to arbitrary downstreams like Redis, not just Kafka.

This patch doesn't break any existing functionality in the kaf-relay daemon. It refactors /internal packages to make them resuable and the hardcoded target/writer now becomes an interface implementation of the generic Writer interface.

New packages are:

  • pkg/kafkawriter
  • pkg/relay

All reusable interface definitions are in:

  • pkg/relay/writer.go

@knadh knadh requested a review from kalbhor March 6, 2026 08:50
@knadh knadh force-pushed the pkg branch 2 times, most recently from f20f7cb to c5e6fb7 Compare March 6, 2026 11:55
…ackages.

Context: To build services that can consume from Kafka sources and transform+write
to arbitrary downstreams like Redis, not just Kafka.

This patch doesn't break any existing functionality in the kaf-relay daemon.
It refactors /internal packages to make them resuable and the hardcoded
target/writer now becomes an interface implementation of the generic `Writer`
interface.

New packages are:
- pkg/kafkawriter
- pkg/relay

All reusable interface definitions are in:
- pkg/relay/writer.go
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.

1 participant