# Production Suggestions
# Logging
Recommended to use logback
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 to build Gradle project to JAR executable file:
build.gradle
plugins {
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
# Boilerplates
# 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
← Proxy Mode Supervisor →