RE: How to call a restlet using riap protocol from a non-restlet

2010-12-29 Thread Jerome Louvel
Hi there,

I'm wondering if you solved this issue.

Regarding the HTTP performance, if you use the internal HTTP connectors (the 
default ones in org.restlet.jar), then 2.0 is rather slow. 2.1 has much 
improved performance, otherwise you should use an extension connectors based on 
Apache HTTP client or Jetty to get latency closer to 10 ms for local loop calls.

There is indeed the possibility to use RIAP, maybe creating a 
Server(Protocol.RIAP) which relies on a static variable, but the equivalent 
Client(Protocol.RIAP) will probably need to be in the same classloader which 
might be an issue in OSGi...

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg
Noelios Technologies ~ http://www.noelios.com




-Message d'origine-
De : infinity [mailto:infinity2hea...@gmail.com] 
Envoyé : vendredi 13 août 2010 22:53
À : discuss@restlet.tigris.org
Objet : How to call a restlet using riap protocol from a non-restlet

I'm fairly familiar with Restlet 2.0 having worked with prior 2-M versions.
We have a working Restlet based project A with several server Resources
deployed in an osgi container.  Another project B is its client. Due to the 
nature of the project B, there are close to 200,000 rest calls made 
sequentially. Each http call on an avg takes 200-300 ms per request. From a 
performance standpoint, using the project A as a REST API is useless from 
Project B.

However, the processing time of each call internally (within project A) is  
10ms.

Bottomline -- http calls are expensive.

Since we own both the projects, I was wondering how to run the Project A in 
process with Project B so that I can use riap:// instead of http:// and 
hopefully, the performance should be as close to 10 ms. 

Earlier,I've used riap:// but the client was a Restlet Server Resource. In this 
case, Project B is only a client Resource.

How do I make project A's server resources accept riap:// from any client 
(within the same process)?




--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/How-to-call-a-restlet-using-riap-protocol-from-a-non-restlet-tp5421544p5421544.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2646632

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2694690


How to call a restlet using riap protocol from a non-restlet

2010-08-13 Thread infinity
I'm fairly familiar with Restlet 2.0 having worked with prior 2-M versions.
We have a working Restlet based project A with several server Resources
deployed in an osgi container.  Another project B is its client. Due to the
nature of the project B, there are close to 200,000 rest calls made
sequentially. Each http call on an avg takes 200-300 ms per request. From a
performance standpoint, using the project A as a REST API is useless from
Project B.

However, the processing time of each call internally (within project A) is 
10ms.

Bottomline -- http calls are expensive.

Since we own both the projects, I was wondering how to run the Project A in
process with Project B so that I can use riap:// instead of http:// and
hopefully, the performance should be as close to 10 ms. 

Earlier,I've used riap:// but the client was a Restlet Server Resource. In
this case, Project B is only a client Resource.

How do I make project A's server resources accept riap:// from any client
(within the same process)?




-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/How-to-call-a-restlet-using-riap-protocol-from-a-non-restlet-tp5421544p5421544.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2646632