Re: Best external app from php

From: Date: Wed, 23 Jun 2004 09:46:11 +0000
Subject: Re: Best external app from php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189281@lists.php.net to get a copy of this message
If you're asking which is faster, PHP or Java, it's a very difficult question and I doubt anyone will give you a concrete answer. I'd suggest writing the application in a much faster compiled language, c++ for example. "C.F. Scheidecker Antunes" <nando@antunes.eti.br> wrote in message news:40E22ED7.5020101@antunes.eti.br... > Hello all, > > I need to have a web application to call an external app that needs to > execute on the background. (It is an *NIX server) > > The app that is being called will do a lenghty work but will be called > by a php script through the web server. > An user will log in, request a computation, the script will call an > external app which will run on the > background. Once the job is completed, a notification will be sent to > the user which will log in again and check the results. > The external app performs a data mining computation on the SQL server to > produce results which will then be written to an SQL table. > > My question is this: > > Is it better to write the external app in PHP or Java? > If I write in PHP then I have to have a way to make the PHP not bound to > time limitations as the operation might take a while. > If I write it in Java I won't have this concern. However, I am concerned > with speed and overhead. > Which one would put a higher load to the processor, a PHP app or a Java > one? > Which one will take longer? > > Also, there might be more than 20 of these threads running on the server > at the same time, hence my concern on which language the app should be > writen. > > Does anyone has experience with such a scenario? > > The input is much apreciated. > > Thanks in advance, > > C.F.

« previous php.general (#189281) next »