kafka-php | PHP client library for Apache Kafka | Pub Sub library
kandi X-RAY | kafka-php Summary
kandi X-RAY | kafka-php Summary
PHP client library for Apache Kafka
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Read from stream
- Returns true if the iterator is still valid
- Encodes a producer request
- Fetches the brokers of a topic .
- Get Offsets before a specific Topic
- Preload next message
- Get the address of a broker .
- Deserialize an offset array
- Get offsets for a topic .
- Validate an error code
kafka-php Key Features
kafka-php Examples and Code Snippets
Community Discussions
Trending Discussions on kafka-php
QUESTION
I want create a topic with kafka-php programming library.
https://github.com/weiboad/kafka-php
How can I do?
If topic doesn't exist in kafka server, executing this code, it doesn't work. It doesn't insert 10 messages "test1....message." because topic isn't create.
...ANSWER
Answered 2022-Mar-16 at 09:28I don't think there is support for this in the available PHP libraries.
The functionality is implemented in the Admin API in the Java client library for Kafka which will enable you to create a topic. I found this github issue against another PHP Kafka client regarding implementing the Admin API but it has not been done.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kafka-php
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