问题
Is it alternative solution for Zend Job Queue what could be used without Zend Server ?
My application need to accept quick request and provide quick response (receipt) and limit this part to database entry. After this additional process should be executed in background to analyze this request (generate PDF file, send emails with PDF, send text message, etc) I do not want to initial request to wait for all those actions to finish - just provide receipt and let server do it a few seconds later...
Zend Job Queue would be a perfect solution, however I can not effort Zend Server environment at this moment. Cron job run every minute is not good way: ( up to 60 seconds delay, and checking database every minute for new entries instead on demand ).
How would you tackle this problem ?
回答1:
Previously I used the BSD lpd for queue management (in my case to queue access for a modem handling SMS and fax, rather than for demand management). But there are lots of other tools available. e.g. rabbitMQ, Dropr, beanstalkd
回答2:
It's an old topic but I wes looking for a zend queue replacement too. Laravel queues seems to be the most similar library: https://laravel.com/docs/5.7/queues
来源:https://stackoverflow.com/questions/7077782/alternative-for-zend-job-queue