php-rdkafka | Production-ready , stable Kafka client for PHP | Pub Sub library
kandi X-RAY | php-rdkafka Summary
kandi X-RAY | php-rdkafka Summary
Production-ready, stable Kafka client for PHP
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of php-rdkafka
php-rdkafka Key Features
php-rdkafka Examples and Code Snippets
Community Discussions
Trending Discussions on php-rdkafka
QUESTION
A quick question, I'm venturing into Kafka using php-rdkafka ( https://github.com/arnaud-lb/php-rdkafka ).
I went through the documentation and i can't find the syntax to produce into existing topic unless the syntax newTopic will insert to the existing topic which i doubt. I keep on getting Java error thrown and i'm not good debugging Java error. I'm seeking help from those who has been using the framework , is it a correct syntax? Please advice
...ANSWER
Answered 2020-Jul-14 at 07:58As per discussion with the developer,
The following syntax can be used to create new topic and add the data to the following/existing topic
QUESTION
I have a producer in php which publishes to queue. I am using php-rdkafka library for the same.
Following is the code:
...ANSWER
Answered 2020-Jun-12 at 11:11https://github.com/arnaud-lb/php-rdkafka uses librdkafka underneath which is a C based Kafka library.
As per the docs RD_KAFKA_PARTITION_UA is for using automatic partitioning using the topic's partitioner function
or you can pass the exact partition number instead of RD_KAFKA_PARTITION_UA to force a partition.
Or you call $conf->setPartitioner(RD_KAFKA_MSG_PARTITIONER_RANDOM);
for enabling random partitioner function. Here's the list of possible constants for setPartitioner
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-rdkafka
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page