/nimrdkafka

Nim wrapper for librdkafka

Primary LanguageNimApache License 2.0Apache-2.0

nimrdkafka

Low-level Nim wrapper for librdkafka. Since this is a wrapper, you need to have librdkafka installed and accessible in LD_LIBRARY_PATH.

Example

See the example.nim file

librdkafka compatibility

library: librdkafka
version: 1.4.0
commit: e4a8c0f62742789bd4d62accd1497c82c08c4259

Please install librdkafka 1.4.0 from source before installing this nim package:

https://github.com/edenhill/librdkafka

Installing librdkafka

git clone https://github.com/edenhill/librdkafka
cd librdkafka
git checkout v1.4.0

Read README.md file in librdkafka project for building and installing.

Troubleshooting

  1. Make sure your topic name and partition number is correct in your code.
  2. If using docker for your kafka runtime, make sure the exposed port and hostname is correct.