Re: Restlet 2.0 Best Practices

2009-11-24 Thread Avi Flax
On Mon, Nov 23, 2009 at 14:58,  webp...@tigris.org wrote:

 I am evaluating Restlet 2.0 vs. Spring 3.0 for a new project that is starting 
 soon. I have done a lot of reading on the website and have written a couple 
 of small programs with Restlet 2.0M6 to get the feel for it. I am looking to 
 hear from people who have been using it into production about their 
 configuration choices.

We're running 1.1, but my answers might still be helpful. We have 5
complex apps in production.

 1) What connector are you using with Restlet in production?

We've been using the Jetty connector for a few years now, and we're
very happy with it.

 I very much like the idea of not having to run inside of a web container, but 
 I am not sure from the list of available connectors which are the best for 
 production, and what are the pros and con's of each connector. Any advice 
 from the community on this is appreciated.

We run our apps as standalone apps — no servlet container — and I'm
very happy with this approach. We use the Tanuki Service Wrapper to
run them as Windows services.

 2) How are you dealing with Caching on the server side?

Mostly Memcache, some OSCache. I prefer Memcache, and after trying out
EHCache, I think it's better than OSCache.

 3)  Are you finding that the Services / Data Access Layers in Standard Web 
 Apps don’t apply in the Restlet World?

I didn't have a lot of experience with Java web development before I
started using Restlet, so I'm not sure what a Service is in a
Standard web app. But I have used a Data Access Object in one of my
Restlet apps, and that's worked out just fine.

 Given that we are exposing resources and no longer exposing services and 
 functionality, do you find that the need for Data Access Objects is gone? As 
 i think about what the app will do, I keep noticing that it is easier to put 
 the data access for a resource into the Restlet instead of making a Data 
 Access Object. After all PUT, POST, and DELETE will do something to the 
 persistent state of the resource and GET will just query it. Thoughts about 
 this from the community are highly appreciated.

This is highly specific to your application.

 4) What does your Restlet production setup look like?

Can you elaborate? What kind of information are you looking for?

-- 
Avi Flax » Partner » Arc90 » http://arc90.com
➙ Have you tried Kindling‽ http://kindlingapp.com

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


Restlet 2.0 Best Practices

2009-11-23 Thread webpost
Hi,

I am evaluating Restlet 2.0 vs. Spring 3.0 for a new project that is starting 
soon. I have done a lot of reading on the website and have written a couple of 
small programs with Restlet 2.0M6 to get the feel for it. I am looking to hear 
from people who have been using it into production about their configuration 
choices. 

1) What connector are you using with Restlet in production?

I very much like the idea of not having to run inside of a web container, but I 
am not sure from the list of available connectors which are the best for 
production, and what are the pros and con's of each connector. Any advice from 
the community on this is appreciated. 

2) How are you dealing with Caching on the server side?

The app I am working on does a lot of DB interactions and caching results 
between requests would improve performance. What caching solutions are people 
using with Restlets. 

3)  Are you finding that the Services / Data Access Layers in Standard Web Apps 
don’t apply in the Restlet World?

Given that we are exposing resources and no longer exposing services and 
functionality, do you find that the need for Data Access Objects is gone? As i 
think about what the app will do, I keep noticing that it is easier to put the 
data access for a resource into the Restlet instead of making a Data Access 
Object. After all PUT, POST, and DELETE will do something to the persistent 
state of the resource and GET will just query it. Thoughts about this from the 
community are highly appreciated. 

4) What does your Restlet production setup look like?

Thanks
Adib

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


Re: Restlet 2.0 Best Practices

2009-11-23 Thread Ben R Vesco
 1) What connector are you using with Restlet in production?


Tomcat due to ops guys' familiarity with it.


 2) How are you dealing with Caching on the server side?


Hibernate managed cache.


 3)  Are you finding that the Services / Data Access Layers in Standard Web 
 Apps don’t apply in the Restlet World?


I'm still using a DAO layer on top of Hibernate with my Restlet based framework.

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