Has anyone gotten graalvm native-image working wit...
# ktor
s
Has anyone gotten graalvm native-image working with just ktor on any of the server engines (i.e. netty)? Someone gave me an example of it working with micronaut + ktor, but I haven’t been able to get it working with just ktor, as graal has lots of problems with netty it seems.
I was able to get it working with CIO. How stable is CIO though?
s
I've been using CIO with no issues. The main drawback with CIO is that it only supports HTTP/1.x (Not sure if that will be an issue on your side)
s
I’m using this inside of Cloud Run. I’m not 100% sure but I think it’s likely users aren’t making a direct connection to my server anyways.
s
You should be ok. It will be funnelled through the load balancer anyway so I would be surprised if anything goes down.
s
FYI - graalvm + ktor is fantastic. On cloud-run’s cheapest shared servers, I’m seeing cold server response times of 900 millis. That’s amazing I think.
🙂 1
K 2
😲 1
s
Oh ya? Do you have a base template or something by any chance? This sounds amazing.
s
FYI - The day after, I started seeing startup times move from 900 millis to 1800 millis. Not clear to me why yet.
s
Thats quite odd... Same when you test it local?