KubeMQ
Client SDKsC++

C++ SDK

Install the KubeMQ C++ SDK and send your first message with step-by-step instructions.

The KubeMQ C++ SDK provides a high-performance, type-safe C++17 client for all messaging patterns. It requires C++17 (GCC 9+, Clang 9+, MSVC 2019+), CMake 3.16+, gRPC v1.78+, and Protobuf v5.29+.

Installation

vcpkg install grpc protobuf nlohmann-json

cmake -B build -S . \
    -DCMAKE_TOOLCHAIN_FILE=[vcpkg-root]/scripts/buildsystems/vcpkg.cmake
cmake --build build --parallel

CMake FetchContent

CMakeLists.txt
include(FetchContent)
FetchContent_Declare(
    kubemq-cpp
    GIT_REPOSITORY https://github.com/kubemq-io/kubemq-cpp.git
    GIT_TAG v1.0.0
)
FetchContent_MakeAvailable(kubemq-cpp)

target_link_libraries(your_app PRIVATE kubemq_static)

Next: send your first message

With the SDK installed, continue to the first-message tutorial to connect a client and publish and receive your first message.

Was this page helpful?

On this page