Live data from Hacker News

Java REST framework Dropwizard 1.0 released

dropwizard.io

11–20 of 88 posts

Re: Java REST framework Dropwizard 1.0 released

#11
Dropwizard is really just an opinionated bundling of sane Java libraries that don't suck, and is essentially tailor-made for the (quasi-)event-driven processing model of:

1. request comes in

2. do stuff here

3. response goes out

While this may not sound very exciting, this is exactly what goes on in HTTP APIs. People these days use Node or Go for this kind of stuff, but Dropwizard makes it very pleasant to do it in Java.

Re: Java REST framework Dropwizard 1.0 released

#12
Congratulations to the Dropwizard team!

We have had great results internally here at Boxfuse with Dropwizard. So good in fact that we decided to add Dropwizard-specific optimizations to our deployment tool for running Dropwizard apps on AWS with a single command.

https://boxfuse.com/getstarted/dropwizard

Re: Java REST framework Dropwizard 1.0 released

#13
post #9
post #7

Dropwizard is great for REST APIs (... as the title says). However if you want to use traditional views (MVC, html templates, security, forms etc) then please check something else (I tried it and lost many hours -- in the end I still couldn't do even basic things). For traditional web development, I recommend spring-boot which is almost as easy as dropwizard, it also doesn't need an application container and fully su…

What templating language did you use with Spring MVC?

I've been looking at http://www.mitchellbosecke.com/pebble/home but I have not yet had a chance to use it.

Re: Java REST framework Dropwizard 1.0 released

#15
post #9

Earlier quoted context omitted.

What templating language did you use with Spring MVC?

I've been looking at http://www.mitchellbosecke.com/pebble/home but I have not yet had a chance to use it.

Hmmm seems nice and has a djangonic syntax! However I'm not really sure how easy would be to integrate with spring boot (and spring security)...

Re: Java REST framework Dropwizard 1.0 released

#16
post #7

Dropwizard is great for REST APIs (... as the title says). However if you want to use traditional views (MVC, html templates, security, forms etc) then please check something else (I tried it and lost many hours -- in the end I still couldn't do even basic things). For traditional web development, I recommend spring-boot which is almost as easy as dropwizard, it also doesn't need an application container and fully su…

Dropwizard has templating engines integration and form validation.

Re: Java REST framework Dropwizard 1.0 released

#17
post #5

Funny that everybody rush for REST framework, while most of the time people cramming REST in their applications need less "read, upload, replace, delete" operation model and more "normal functions, except called remotely" provided by RPC. But RPC-over-HTTP (XML-RPC, JSON-RPC, or even Thrift) is a problem solved long ago, so it's not sexy enough, I think.

Such frameworks mostly target communication with rich html frontend, where adaptation of rpc is very low.

Re: Java REST framework Dropwizard 1.0 released

#18
post #9
post #7

Dropwizard is great for REST APIs (... as the title says). However if you want to use traditional views (MVC, html templates, security, forms etc) then please check something else (I tried it and lost many hours -- in the end I still couldn't do even basic things). For traditional web development, I recommend spring-boot which is almost as easy as dropwizard, it also doesn't need an application container and fully su…

What templating language did you use with Spring MVC?

I've been using Thymeleaf with Spring for a while and almost always exclusively use it with Spring Boot because it's pretty much right out of the box ready to go.

I stumbled on it a long time ago because I had the problem of Java devs needing to integrate templates built by front end devs and all the churn that goes along with it.

It uses custom tag attributes like th:href to swap the computed value in on template render so you can have a completely perfect looking HTML/CSS/JS template with the placeholder values without having to convert back and forth. It's just HTML with extra attributes that get ignored when not run through the rendering process.

You can use Spring Expressions, forms, and security with pretty much no configuration, it works awesome.

It supports partials and layouts and all the good stuff you'd want for reuse and it took me about 10 minutes to create a custom dialect for it that lets me use Thymeleaf and Vue.js together very nicely.

I can't recommend Thymeleaf enough.

Re: Java REST framework Dropwizard 1.0 released

#19
post #16
post #7

Dropwizard is great for REST APIs (... as the title says). However if you want to use traditional views (MVC, html templates, security, forms etc) then please check something else (I tried it and lost many hours -- in the end I still couldn't do even basic things). For traditional web development, I recommend spring-boot which is almost as easy as dropwizard, it also doesn't need an application container and fully su…

Dropwizard has templating engines integration and form validation.

I'm aware of that. However, have you tried using them in any non-trivial project? (for example, a project that supports authentication ?)

Re: Java REST framework Dropwizard 1.0 released

#20

Earlier quoted context omitted.

I've been looking at http://www.mitchellbosecke.com/pebble/home but I have not yet had a chance to use it.

Hmmm seems nice and has a djangonic syntax! However I'm not really sure how easy would be to integrate with spring boot (and spring security)...

I'm not sure about Spring Security but as for Spring Boot itself http://www.mitchellbosecke.com/pebble/documentation/guide/sp...
Post reply on HN