My Zend_Log
writers are sending data to third-party resources, like Amazon DynamoDB, for example. Such operations take time and I want to do them in background. I tried to use pcntl_fork()
, but it doesn't work correctly with Apache. Do you have any other ideas of how this parallel execution of logging operations can be done in PHP and in Zend Framework? Maybe some examples?
edit: I understand that an obvious solution would be to save log messages into some files/queue and push them through later, but this is not what I'm looking for in this question.