Friday 12 August 2016

dropwizard vs spring boot

Dropwizard
Spring Boot
Libraries
Core: Jetty, Jersey, Jackson and Matrics
Others: Guava, Liquibase and Joda Time.

Libraries
Any can be easily plugged
 Spring, JUnit, Logback, Guava. 

DEPENDENCY MANAGEMENT
Dependency Injection
No built in Dependency Injection. Requires a 3rd party dependency injection framework such as Guice, CDI or Dagger.
Dependency Injection
Built in Dependency Injection provided by Spring Dependency Injection container. 

Types of Services i.e. REST, SOAP
Primarily designed for HTTP/REST layer. But has some support for other types of services.

Types of Services i.e. REST, SOAP
As well as supporting REST Spring-boot has support for other types of services such as JMS, Advanced Message Queuing Protocol, SOAP based Web Services to name a few.

PERSISTENCE SUPPORT
It is very tightly coupled with Hibernate.
It uses Spring Data module that is build on JPA 2.1 specification
Another brilliant concept is Repository interface (from Spring Data module) that makes creation of CRUDs
TRANSACTION SUPPORT
Dropwizard comes with @UnitOfWorkannotation which can be applied only to methods in REST resource classes
@Transactional annotation can be applied on any method or class, not only on endpoints, so it gives much more flexibility.
CONFIGURATION MANAGEMENT
Dropwizard supports only YAML. But can integrate with other libraries to get multiple config file support.

SB supports simple .properties and yaml file format.

COMMUNITY SUPPORT


4 times more topics about Spring Boot


No comments:

Post a Comment