Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight RESTful Java Framework [closed]

Tags:

java

rest

I have been looking into RESTful web services in Java and most of the approaches I have found look to be rather bloated. These include approaches from NetBeans, Spring 3, and EJB using Singletons.

I may be wrong so please feel free to correct me but these all 'feel' like very complicated solutions to a relatively simple problem.

Can anyone suggest a very simple and lightweight approach to doing RESTful webservices in java?

I am not convinced MVC is necessary on the back end for these, instead I am looking at doing clean vertical slices.

I will not need persistence unless it can be wired to mongoDB - so I don't need any ORM mapping.

like image 652
Jeremiah Adams Avatar asked Oct 25 '12 14:10

Jeremiah Adams


2 Answers

Just to throw another option into the mix, check out Spark:

A Sinatra inspired micro web framework

For Java.

Haven't used it personally, but it looks promising and I'm definitely going to check it out.

And, no, I am not affiliated with Spark in any way.

like image 174
superEb Avatar answered Sep 22 '22 16:09

superEb


Take a look at Dropwizard, the summary on the website said what has to be said about.

Developed by Yammer to power their JVM-based backend services, Dropwizard pulls together stable, mature libraries from the Java ecosystem into a simple, light-weight package that lets you focus on getting things done.

Dropwizard has out-of-the-box support for sophisticated configuration, application metrics, logging, operational tools, and much more, allowing you and your team to ship a production-quality HTTP+JSON web service in the shortest time possible.

I used it for a simple app recently, and it proved to be really quick and easy to get started and use it until the app was finished.

like image 24
Alex Avatar answered Sep 21 '22 16:09

Alex