https://kotlinlang.org logo
m

Mattlangsenkamp

06/28/2020, 7:59 PM
Kotless autowarming is essentially just a cron that calls an endpoint every couple minutes to keep it in the AWS ready queue. Is my understanding of this correct?
t

TanVD

06/28/2020, 8:13 PM
Yep, it is a sugar for scheduler. The only difference that during auto warming Autowarm-event subscribers are fired
m

Mattlangsenkamp

06/28/2020, 8:14 PM
so should it completely handle the cold start problem?
t

TanVD

06/28/2020, 8:40 PM
Well, it should help. For example projects it eliminates problem almost completely under moderate load.
Not sure about “solve”, I am experimenting with GraalVM for Kotless, it would be the next step :)
Btw, if you would use Ktor it can also help. It does not use reflection, so it starts even faster than Kotless DSL (about 200-300ms)
Kotless DSL would take around 500ms for project like in examples
m

Mattlangsenkamp

06/28/2020, 8:45 PM
currently am using ktor. I do notice the cold starts but they are honestly not that bad.
👍 1
3 Views