Example docker environment where php can write and read from kafka. Edited by AVC
On your own machine you should have:
- docker
- docker-compose
docker-compose up -d
Send your message in the querystring by visiting http://localhost?hello
.
docker-compose exec php php /usr/share/nginx/www/public/consumer.php
The line above should print the messages in the shell
- Docker images for kafka and zookeeper
- librdkafka, a C implementation of the kafka protocol
- php-rdkafka, a kafka client for php