package kafka-eio
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=88c2b9c6d263a1eb114cc5d1b570288a
sha512=44f5395fcc58b8d4303bc0b36113a17193da3a1925125cb0742fabeb96f32eb6b243c98d2fde283b6c95872ff36ddbf96de6e98b7612799e2aefeb2f85a1db95
Description
Producer and consumer libraries for Kafka on Eio/OCaml 5, backed by librdkafka. Idempotent/transactional delivery, consumer-group streaming with explicit ack, partition-aware concurrency, and typed transport security (plaintext/SSL/SASL).
Added to opam-repository:
README
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.
Dependencies (6)
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building kafka-eio with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.1.1 (this version) | n/a | n/a | n/a | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure