In this article we will discuss the similarities and differences between Java Lightweight framework Dropwizard and spring boot.
First of all, this is a choice of freedom and speed needs, no matter what you choose in Dropwizard and spring boot, the two frameworks themselves are a bit opinionated, they all believe that the agreement is better than the configuration, then how stubborn? You will find that, after we compare, each of them is mixed with a third-party library package, most of which is not a core function need but a need for integration. The benefit of this sacrifice is to get good performance. The following illustration uses white to display a dependent package.
Spring's dependence
Spring boot focuses on the spring app, and if you want to get into the spring ecosystem, or you're already familiar with it, and want a quick start, it's a good choice, and Dropwizard is the combination of rest and jersey, It helps you to leave the dependency on spring.
HTTP Server
Here we see spring boot more flexible, dropwizard with a convention over configuration, more extreme than spring boot, completely based on jetty, and spring boot uses embedded tomcat by default, and others can choose.
Log
Dropwizard switch from log4j to Logback, and spring boot provides logback, log4j and log4j2 selection, Logback is a better log4j, performance is higher than log4j, but note that different methods use different performance.
Dependency Injection
The main difference between the two frameworks is the dependency injection, the spring core has dependency injection, and Dropwizard needs your choice, which also brings flexibility, with Google Guice or newer better dependency injection frameworks to choose from.
Test
The two frameworks are supported by Dropwizard-testing and Spring-boot-starter-test.
Dropwizard metrics allows you to add it to any project, even with spring boot metrics, to ensure your code is productive.
Finally, both have strong community support. If you prefer light weight, no doubt Dropwizard wins, if you already have spring experience, no doubt use spring Boot.
Dropwizard: Developing lightweight RESTful services
Six powerful Java frameworks for creating restful services
Special topics in RESTful services
Http://www.jdon.com/soa/dropwizard-vs-spring-boot.html
SOA feature---Dropwizard vs spring boot comparison