wrap_kafka
is an Eiffel binding of librdkafka - the Apache Kafka C/C++ client library
using WrapC tool.
librdkafka is a C library implementation of the Apache Kafka protocol, providing Producer, Consumer and Admin clients. It was designed with message delivery reliability and high performance in mind, current figures exceed 1 million msgs/second for the producer and 3 million msgs/second for the consumer.
librdkafka is licensed under the 2-clause BSD license.
- WrapC tool.
- librdkafka C API
$ apt install librdkafka-dev
Installing librdkafka using vcpkg You can download and install librdkafka using the vcpkg dependency manager:
# Install vcpkg if not already installed
$ git clone https://github.com/Microsoft/vcpkg.git
$ cd vcpkg
$ ./bootstrap-vcpkg.sh
$ ./vcpkg integrate install
# Install librdkafka
$ vcpkg install librdkafka or vcpkg install librdkafka:x64-windows
To learn more about how to install librdkafka read the following section Kafka Installation
Work in progress.
Before to use the examples you will need to compile the C glue code, go to
library/generated_wrapper/c/src
and run
finish_freezing --library
It will copy the C lib eif_kafka.a
to $ECF_CONFIG_PATH/C/spec/$(ISE_PLATFORM)/lib/
or eif_kafka.lib
to $ECF_CONFIG_PATH/C/spec/$ISE_C_COMPILER/$ISE_PLATFORM/lib