These are chat archives for arnaud-lb/php-rdkafka

10th
Aug 2016
Arnaud Le Blanc
@arnaud-lb
Aug 10 2016 09:58
Hi @salmanbukhari
Syed Salman Ahmed Bukhari
@salmanbukhari
Aug 10 2016 09:59
@arnaud-lb hello
Arnaud Le Blanc
@arnaud-lb
Aug 10 2016 09:59
The underlying producer is thread safe, but the PHP wrapper probably not. Are you using the pthread extension ?
Syed Salman Ahmed Bukhari
@salmanbukhari
Aug 10 2016 10:03
No actually I am doing it in main thread. I just need one message per PHP page request. But I have found that it is not possible as PHP forks a new process for every request.So a new connection is created every time to push a message in Kafka. It is taking 400ms per request. I think I need to revise my model.