1.1k sao GitHub và vẫn tăng — confluentinc/librdkafka là dự án C mà TopGit đang theo dõi trên nền tảng. The Apache Kafka C/C++ library
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
librdkafka - the Apache Kafka® C/C++ client library
Copyright (c) 2012-2022, Magnus Edenhill.
2023 Confluent Inc..
https://github.com/confluentinc/librdkafka
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.
KAFKA is a registered trademark of The Apache Software Foundation and
has been licensed for use by librdkafka. librdkafka has no
affiliation with and is not endorsed by The Apache Software Foundation.
Features
Full Exactly-Once-Semantics (EOS) support
High-level producer, including Idempotent and Transactional producers
Step-by-step tutorial Getting Started with Apache Kafka and C/C++.
NOTE: The master branch is actively developed, use latest release for production use.
Installation
Installing prebuilt packages
On Mac OSX, install librdkafka with homebrew:
$ brew install librdkafka
On Debian and Ubuntu, install librdkafka from the Confluent APT repositories,
see instructions here and then install librdkafka:
$ apt install librdkafka-dev
On RedHat, CentOS, Fedora, install librdkafka from the Confluent YUM repositories,
instructions here and then install librdkafka:
$ yum install librdkafka-devel
On Windows, reference librdkafka.redist NuGet package in your Visual Studio project.
For other platforms, follow the source building instructions below.
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
The librdkafka package in vcpkg is kept up to date by Microsoft team members and community contributors.
If the version is out of date, please create an issue or pull request on the vcpkg repository.
Build from source
Requirements
The GNU toolchain
GNU make
pthreads
zlib-dev (optional, for gzip compression support)
libssl-dev (optional, for SSL and SASL SCRAM support)
libsasl2-dev (optional, for SASL GSSAPI support)
libzstd-dev (optional, for ZStd compression support)
libcurl-dev (optional, for SASL OAUTHBEARER OIDC support)
NOTE: Static linking of ZStd (requires zstd >= 1.2.1) in the producer
enables encoding the original size in the compression frame header,
which will speed up the consumer.
Use STATIC_LIB_libzstd=/path/to/libzstd.a ./configure --enable-static
to enable static ZStd linking.
MacOSX example:
STATIC_LIB_libzstd=$(brew ls -v zstd | grep libzstd.a$) ./configure --enable-static
Building
./configure
# Or, to automatically install dependencies using the system's package manager:
# ./configure --install-deps
# Or, build dependencies from source:
# ./configure --install-deps --source-deps-only
make
sudo make install
NOTE: See README.win32 for instructions how to build
on Windows with Microsoft Visual Studio.
NOTE: See CMake instructions for experimental
CMake build (unsupported).
Usage in code
See getting Started with Apache Kafka and C/C++ for a basic tutorial.
Schema Registry producers: see
producer_schema_registry.cpp.
Production applications should use Schema Registry — producing raw bytes
leads to data-quality issues, broken consumers, and ungovernable data.
librdkafka has no built-in Schema Registry serializer, so this example
uses libschemaregistry
and avro-cpp.
Consumers: basic consumers, reading batches of messages.
Share consumers (Queues for Kafka, KIP-932, Preview): see the share_consumer* examples.
Performance and latency testing tools.
Refer to the examples GitHub repo for code connecting to a cloud streaming data service based on Apache Kafka
Link your program with -lrdkafka (C) or -lrdkafka++ (C++).
Commercial support
Commercial support is available from Confluent Inc
Community support
Only the latest official release is supported for community members.
File bug reports and feature requests using GitHub Issues.
Questions and discussions are welcome on the Discussions forum, and on the Confluent Community slack #clients channel.
Language bindings
C#/.NET: confluent-kafka-dotnet (based on rdkafka-dotnet)
confluentinc/librdkafka có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho confluentinc/librdkafka. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
confluentinc/librdkafka có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho confluentinc/librdkafka. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
confluentinc/librdkafka là gì?
confluentinc/librdkafka (confluentinc/librdkafka) là dự án C trên GitHub. Theo mô tả gốc: The Apache Kafka C/C++ library
Cùng nhóm Backend còn repo nào?
confluentinc/librdkafka thuộc nhóm Backend trên TopGit, cùng 9 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về confluentinc/librdkafka ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/confluentinc/librdkafka là nguồn chính thức.
Vì sao confluentinc/librdkafka được xếp vào nhóm Backend?
TopGit xếp confluentinc/librdkafka vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "apache-kafka", "c", "c-plus-plus"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
librdkafka có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về librdkafka.