Thread
#kotless
    m

    Mattlangsenkamp

    2 years ago
    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?
    TanVD

    TanVD

    2 years ago
    Yep, it is a sugar for scheduler. The only difference that during auto warming Autowarm-event subscribers are fired
    m

    Mattlangsenkamp

    2 years ago
    so should it completely handle the cold start problem?
    TanVD

    TanVD

    2 years ago
    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

    2 years ago
    currently am using ktor. I do notice the cold starts but they are honestly not that bad.