talira

Dropwizard

Java framework for ops-friendly, high-performance RESTful web services

open sourceApache-2.0free

Dropwizard is a Java framework for building ops-friendly, high-performance RESTful web services. It pulls stable, mature Java libraries into one lightweight package: Jetty embedded as the HTTP server, so an application is a plain process started from a main method rather than a deployment to an application server; Jersey for REST resources; Jackson for JSON; and Metrics for application metrics, with configuration, logging, health checks and operational tools built in. Modules add an HTTP client, JDBI3, Hibernate, database migrations, authentication, forms, validation and views. Applications ship as a single fat JAR.

Problems it solves

  • build a production-ready REST API in Java without configuring an application server
  • I want metrics, health checks and logging in my Java web service from day one
  • a lighter alternative to Spring Boot for JSON web services on the JVM

Features

  • embedded Jetty HTTP server: the application runs as a single process
  • Jersey (JAX-RS) for REST resources
  • Jackson for JSON
  • application metrics, health checks and logging
  • YAML configuration classes with validation
  • modules for JDBI3, Hibernate, migrations, authentication, an HTTP client, forms and views
  • fat JAR packaging

Alternatives

The same job

These do what Dropwizard does.

  1. Spring Boot Create stand-alone, production-grade Spring based applications that you can "just run"
  2. Micronaut A modern, JVM-based framework for fast cloud applications
  3. RESTEasy A Jakarta RESTful Web Services implementation for building REST APIs in Java
  4. Spring Framework The programming and configuration model for Java enterprise applications that every Spring project builds on
  5. Javalin A simple, lightweight web framework for Java and Kotlin, on top of Jetty
  6. Play Framework The high velocity web framework for Java and Scala

Compare Dropwizard with the top 3