• Post Reply Bookmark Topic Watch Topic
  • New Topic

Restful Webservices

 
Ravikanth Reddy Bapathi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone let me know which is the best restful framework using java (both client and server), with good documentation.

I have been going through few of frameworks like restlet, apache wink and jersey.
I need an absolutely light weight framework, My webservices will be consumed by different clients like iphone, web.

i am not very much familiar with restful api, need to make hands dirty with one of frameworks and push services live very soon.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go with Jersey.

I would not depend on any of the Frameworks for the client side unless there is a REALLY good reason.

Normal Java provides everything you need to make HTTP requests after all. REST is all about simplictity but framework designers love to add "features."

Bill

 
Jim Akmer
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@William Brogden:
I would not depend on any of the Frameworks for the client side unless there is a REALLY good reason.

Why do you suggest against using a framework for client?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Using a framework on the client side means you will have to supply a larger package containing the framework jars instead of being able to rely on standard Java packages.
2. Client side REST is basically very simple, no need to add complexity - "simplify and add lightness."

Bill
 
Jim Akmer
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bill I see what you mean. If there is a requirement on size you are correct. But otherwise, is it not like trying to reinvent the wheel? Unless you think that the java frameworks are not as "optimised" as one would expect (in which case I may also agree)
 
Ravikanth Reddy Bapathi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Guys for the Reply.

The below article does a benchmarking on restful frameworks and concludes to go with apache wink

http://www.ibm.com/developerworks/web/library/wa-apachewink3/

I understand that No comparison of software frameworks would be complete without some form of performance testing and this is based on a hello world service and not a rigourous performance test.

Do you still suggest me to go with Jersey ? and why not with apache wink ?

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thing is, "RESTful Webservices" is so very very general - just think about the kind of resources your client might be dealing with - anything from plain text to images to complex structures .... etc.

Trying to come up with a completely general framework to deal with all these possibilities is what has made SOAP get more and more complicated. Sooo much bulkier than the original concept - that seems to be the fate of framework builders.

Bapathi - I had not even heard of Wink .. ieee the proliferation of frameworks...

Bill
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
A reason to choose a more well-known framework may be that there are more people using it and thus a greater chance to find information and answers to questions if you run into problems.
I have used the Restlets framework to develop a web service that I load tested. Despite being singled out as the slowest REST framework in the article, it withstood quite a big load and performed very well. I must add that I used the Grizzly (NIO) extension.
Thus I personally would not choose REST framework based on performance, since the differences seems to be small and your service implementation will probably be what decides the processing power of your service.
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!