I am working on a huge php application with Zend framework, in that project we need to process files and create thumbnails for images, videos, documents for which we are using imagemagick, ffmpeg, openoffice in background process. To make the process optimized and fast with minimum resources I am thinking of implementing this process using another language may be java or c.
What you people suggest
I really would stick with PHP. Here are the Reasons:
ffmpeg
process starts when it's running several minutes. IMHO it's not worth it to use C/C++ to start these processes.
Whatever language you use including PHP, you can use Gearman to initiate and manage the background processes for the heavy lifting.
Your Zend PHP application will create "jobs" and send them to Gearman, who will then dispatch them to "workers" who will perform them and report back, while your application can go on and not block. Said workers can be in a multitude of languages including PHP.
If your processing is using external tools mainly, you can stay on shellscripts.
Then you just run 1-2-4-8 scripts in background which run constantly, fetch & process pieces of work and you are done.
Going C++/java is way longer to implement with very little benefit on this task.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.