From: Robert Klemme Date: 2013-07-10T01:24:27+09:00 Subject: Re: Ruby web service with REST support --001a11c2b80e2f87fa04e116988e Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 9, 2013 at 4:57 PM, Shubhada S. wrote: > Hi, > Basically we want to make our application to be supported with REST > APIs. > We will receive the REST requests to Tomcat application server. And from > there we need to forward it to our application in ruby. > > So I want to understand that what the exact things I will need to have > to complete this setup for REST communication. Few things I have listed > down. > > 1. The application > 2. Tomcat apache server > 3. Webrick (I am not sure about it... but I guess this would be required > to serve the REST requests.) > 4. phusion passenger OR JRuby OR Sinatra (This is also I am not sure > about. But, for communication between Tomcat and our framework in ruby.) > > > Can anybody help me out to figure it out? Is more explanation is > required to understand the problem? If you use Sinatra or Webrick there really seems to be no point in having Tomcat in between. That just gives you one more step with latency. If your application is running on JRuby the situation is different: you may be able to have JRuby and Tomcat run in the same JVM and communicate via function / method calls. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --001a11c2b80e2f87fa04e116988e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Tue, Jul 9, 2013 at 4:57 PM, Shubhada S. <<= a href=3D"mailto:lists@ruby-forum.com" target=3D"_blank">lists@ruby-forum.c= om> wrote:
Hi,
Basically we want to make our application to be supported with REST
APIs.
We will receive the REST requests to Tomcat application server. And from there we need to forward it to our application in ruby.

So I want to understand =A0that what the exact things I will need to have to complete this setup for REST communication. Few things I have listed
down.

1. The application
2. Tomcat apache server
3. Webrick (I am not sure about it... but I guess this would be required to serve the REST requests.)
4. phusion passenger OR JRuby OR Sinatra (This is also I am not sure
about. But, for communication between Tomcat and our framework in ruby.)

Can anybody help me out to figure it out? Is more explanation is
required to understand the problem?

I= f you use Sinatra or Webrick there really seems to be no point in having To= mcat in between. =A0That just gives you one more step with latency. =A0If y= our application is running on JRuby the situation is different: you may be = able to have JRuby and Tomcat run in the same JVM and communicate via funct= ion / method calls.

Cheers

robert=A0


--
remember.guy = do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
--001a11c2b80e2f87fa04e116988e--