by duiker101 · 14y ago · 0 comments
About the article, I think you are just doing it wrong. I personally never used Go, like I never used many other languages, but I tried many. Everyone has it's own way, just because one does things differently and not your way doesn't mean it's wrong. It means is different. You know...taste...
"Note: For many reasons PHP is not an optimal language choice for creating servers or daemons. I created this library so if you must use PHP for these things, you can do it with ease and produce great results. But if you have the choice, Java, Python, Ruby, etc, are all better suited for this."
Possible but not recommended.
Thanks for the link.
My background processes lean on supervisor's functionality quite a lot. Most of them don't run any longer than 5 mins or so.
* video encoding and thumb-nailing
* image conversion
* content upload to ftp, s3, rs cloud, etc
* address geocoding
* email notifications
* web scraping
All in all, very pleased. The next part is to build a unified control panel to watch my processes and workers. For now I use the one built into supervisord.Did you read the article? That was exactly his point.
In recent times we have been hearing a lot about Twitter and Facebook's backends, both of which make heavy use of JVM-based languages despite still using PHP and Ruby respectively in the main web-facing application. I believe the article is drawing from that context to separate what the backend means.
You can, of course, write your backend code in virtually any language, but PHP isn't particularly geared towards the task for a number of reasons.