News for hackers. Stuff that matters.
Re:Java REST framework Dropwizard 1.0 released by _pmf_ on Wednesday July 27, 2016 @03:30AM (#12171141)
Jetty has been around for a while; a response handler is a one liner (well, a Java one liner, which translates to 7 lines ...).

With Spark[0] (not to be confused with Apache Spark ...), you can get a Sinatra-like routing library on top of Jetty (while you still can deploy the webapp in a more heavyweight container if you need to).

I think Spark is in spirit much like Dropwizard, but a bit more lightweight.

[0] http://sparkjava.com/

Re:Java REST framework Dropwizard 1.0 released by CHY872 on Wednesday July 27, 2016 @03:54AM (#12171215)
(opinion: i've spent a year writing Dropwizard based apps, but only two evenings writing Spark based apps).

I think that Spark comes at the cost of customisability - 2-way SSL is a chore, you have to parse your own message bodies, you don't get straightforward logging out of the box - there's a base set of features and functionality that I couldn't find in Spark.

The thing that impressed me about Dropwizard is that you can get in perhaps 50 lines of boilerplate a really solid core behind an application - with Spark you can do that in perhaps 20, but you are somewhat limited beyond that.

Re:Java REST framework Dropwizard 1.0 released by _pmf_ on Wednesday July 27, 2016 @05:00AM (#12171403)
I've only used Spark in a very local context (small company internal projects), so I'll definitely take into account your experience when doing something bigger.