DropWizard

Sergey Smyshlyaev/ @sesm_

Java web dev

XML config

Deploy WAR

PermGen leaks anyone?

Configs inside war?

Get long stacktrace

Redeploy

Java web dev

"Java is a DSL to convert XML to stacktrace"

Why Dropwizard?

Embedded webserver (one jar)

Metrics from the very start

Metrics are important

Health checks

How to know DB settings are wrong?

Admin interface from the very start

Why Dropwizard?

No Spring!

Has main method!

Fast, predictable and transparent init

About Dropwizard

Mostly a collection of existing libraries

Jetty

Jersey

Jackson

Logback

Hibernate Validators

Liquibase

JDBI

Also Hibernate, if you want

About Dropwizard

Added code for:

Metrics

Used by many other projects

Health checks

App initialization glue code to replace Spring

About Dropwizard

REST-centric

Concept of "resource"

Live coding!

Or not :)

More: templates

Moustache or Freemarker

Why not JSP?

Huge standard

No a-la carte implementation existed for a long time

More:

Auth

Asset pipelining - use maven-frontend-plugin

WebSockets - 3rd party extensions

History

2010 - created in Yammer

2014 - separate org

Kicked away Scala, avoided Play path

currently 1.0.rc3

Other frameworks

Spring Boot

Play

Ratpack

Ninja

Thanks!

Contact me:

Twitter: @sesm_

E-mail: sergey.smyshlyaev@gmail.com

Telegram: @sergey_smyshlyaev

VK: vk.com/id115992

Questions?

Made with Slides.com