# Production Suggestions

# Logging

Recommended to use logback(opens new window)

build.gradle

dependencies {
    compile group: 'ch.qos.logback', name:'logback-classic', version: '1.0.9'
    compile group: 'ch.qos.logback', name:'logback-core', version: '1.0.9'
}

# Build

Suggestion: use com.github.johnrengelman.shadow(opens new window) to build Gradle project to JAR executable file:

build.gradle

plugins {
    id 'com.github.johnrengelman.shadow' version '6.0.0'
}

# Boilerplates

See Examples(opens new window)

# Health Checks and Graceful Shutdown

Add shutdown hook

Main.java

Runtime.getRuntime().addShutdownHook(new Thread(server::stop));
log.info("Added shutdown hook");

WIP

This page is in WIP