Skip to content

Instantly share code, notes, and snippets.

@warmuuh
Created August 14, 2015 15:03
Show Gist options
  • Save warmuuh/019ed40c97fbc91ca9d1 to your computer and use it in GitHub Desktop.
Save warmuuh/019ed40c97fbc91ca9d1 to your computer and use it in GitHub Desktop.
microservice stack
microservice stack:
features:
* rest-service (embedded jetty) (using http://sparkjava.com/)
* environment-based configuration (using https://github.com/typesafehub/config)
* dependency injection (using https://github.com/warmuuh/hardwire)
* logging (using simple-slf4j)
* metrics (using dropwizards metrics-core)
* healthchecks (using dropwizards metrics-healthchecks)
* json (to/from redis, to/from web) (using gson)
* redis-integration (using jedis)
* packaged with apache shade (minimized)
wins:
very(!) small executable jar (base: ~1.8 mb with embedded jetty)
fast startup (~350 ms)
still all features that are needed of a microservice (logging, healthchecks, etc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment