janvladimirmostert
10/07/2019, 12:19 PMJorge R
10/07/2019, 3:27 PMjanvladimirmostert
10/07/2019, 3:34 PMclass EndpointConfig {
/**
* Maximum connections per single route.
*/
var maxConnectionsPerRoute: Int = 100
100 is seriously low when you're trying to squeeze a lot of performance out of a single instance@JvmStatic
@KtorExperimentalAPI
fun main(args: Array<String>) {
embeddedServer(
//Netty,
CIO,
watchPaths = listOf("module"),
module = Application::module,
port = if (ENV.env == LOCAL) {
8080
} else {
80
}
).apply {
start(wait = true)
}
avolkmann
10/07/2019, 4:56 PMjanvladimirmostert
10/07/2019, 4:57 PM