From: Julian Leviston Date: 2013-04-04T11:25:56+09:00 Subject: Re: is ruby CGI the good way --Apple-Mail=_994CF9CA-03B9-42D3-93FC-7146DDDE6557 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii CGI module is fairly crap. (Slow performance, has to load a Ruby = interpreter against every request, etc.) If you have a simple API, it's = probably better to choose something much more lightweight and not Ruby, = depending on how complex it is. Julian On 04/04/2013, at 12:53 PM, Ken Peng wrote: > Hi, >=20 > =20 > We have a simple API plan, it does the standard web request/handle = flow: >=20 > get requests from users, do something with DB queries, return the = results to users. >=20 > =20 > =20 > I know well about CGI and ruby's CGI module. So it's quiet easy to = write the API with CGI module with Apache as webserver. >=20 > But, does CGI have slow performance? What's the good alternative? >=20 > Sorry I know nothing about Rais, and I don't think we need rails to = run for this simple service. >=20 > =20 > Thanks. >=20 --Apple-Mail=_994CF9CA-03B9-42D3-93FC-7146DDDE6557 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
CGI module is fairly crap. (Slow performance, has to load a Ruby interpreter against every request, etc.) If you have a simple API, it's probably better to choose something much more lightweight and not Ruby, depending on how complex it is.

Julian

On 04/04/2013, at 12:53 PM, Ken Peng <yhpeng@orange.fr> wrote:

Hi,

 

We have a simple API plan, it does the standard web request/handle flow:

get requests from users, do something with DB queries, return the results to users.

 
 

I know well about CGI and ruby's CGI module. So it's quiet easy to write the API with CGI module with Apache as webserver.

But, does CGI have slow performance? What's the good alternative?

Sorry I know nothing about Rais, and I don't think we need rails to run for this simple service.

 

Thanks.


--Apple-Mail=_994CF9CA-03B9-42D3-93FC-7146DDDE6557--