package kafka-eio
Eio-native Kafka client for OCaml 5, built on librdkafka
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.1.1.tar.gz
md5=88c2b9c6d263a1eb114cc5d1b570288a
sha512=44f5395fcc58b8d4303bc0b36113a17193da3a1925125cb0742fabeb96f32eb6b243c98d2fde283b6c95872ff36ddbf96de6e98b7612799e2aefeb2f85a1db95
doc/README.html
kafka-eio
Eio-native Kafka client for OCaml 5, built on librdkafka.
kafka-eio-core— internal shared FFI/error/security layer, installed askafka-eio.corefor the higher-level packages;Kafka_rawis unstable and not the supported user APIkafka-eio-producer— producer: fire-and-forget, awaitable delivery, transactionskafka-eio-consumer— consumer: fetch/stream/poll, consumer groups, explicit ack, partition-aware retrykafka-eio-facade(Kafkamodule, findlibkafka-eio.kafka) — thin aliases (Kafka.Producer,Kafka.Consumer,Kafka.Error,Kafka.Security) over the three packages above, foropen Kafkainstead of the flat module namesdemo/— minimal produce-then-consume sandbox binary
Extracted from the Sun platform, where kafka-eio-service (typed message contracts, schema registry, Redpanda admin, retry topics/DLQ — the opinionated application layer) still lives and now depends on this as an external library.
Build
eval $(opam env)
dune buildPrerequisite: sudo apt-get install -y librdkafka-dev
Test
# Unit tests (no broker needed)
dune runtest
# Integration tests (requires a running broker)
KAFKA_BROKERS=localhost:9092 dune build @runtest-integrationSee each package's <name>.md for its design document.