Hi I have one issue about how to start kafka consumer automatic using php script. can you please share your php script to launch kafka consumer.
Mar 16, 2020
1
Level 2
Best practices - Kafka Consumer and Laravel
Hi,
I have a PHP script file, to launch my Kafka Consumer. This consumer needs to make some actions in my database. Right now, the file is placed in the root directory of my Laravel project and I execute it by php kafka-consumer.php. But, by doing this, I can't access easily my database and make so request in it, or, for example, I can't use dd().
I'm sure Laravel propose a solution for this type of needs, but I didn't find anything. Maybe the console.php routes ? What is the best practices for this type of needs ?
Thanks for your advice !
Please or to participate in this conversation.