mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
kafka-clients (plus the zstd-jni and lz4-java it pulls in transitively) was an always-on dependency for Kafka-sourced Pipes, reachable in every build regardless of whether a Pipe ever used a Kafka source: MSK-backed or self-managed. This drops the dependency entirely rather than gating it, so it is no longer reachable in either a native or a JVM build. PipesKafkaConsumerManager and PipesPoller's Kafka poll/deliver path now talk to a Karapace REST Proxy sidecar (KarapaceManager starts one on demand per distinct bootstrap.servers target, shared by every pipe that reads the same cluster) instead of embedding a native Kafka consumer. PipesKafkaRestClient speaks Karapace's REST API with the JDK HttpClient, the same approach already used elsewhere in this codebase for other REST-shaped backends. Kafka record fidelity (topic, partition, offset, timestamp, key, value, headers) is preserved; timestampType is always reported as CreateTime since the REST Proxy does not expose the real value, which only diverges from a topic explicitly configured for LogAppendTime. Validated locally against a real Redpanda + Karapace pair in Docker.