https://kotlinlang.org logo
#kotless
Title
# kotless
n

neil

12/06/2019, 9:52 AM
@TanVD I am running ktor on ECS. Are there any plans to support ECS services in kotless?
t

TanVD

12/06/2019, 9:55 AM
We do want to support it, yes. Kotless would generate full terraform template and, possibly, dockerfiles. You can describe your use-case in an issue — it would help us a lot)
n

neil

12/06/2019, 11:44 AM
Certainly! We're currently writing our own dockerfile and cloudformation+ansible. Would be great to generate it
d

daniel

12/07/2019, 7:23 PM
Just out of curiosity. What would be the advantage for you to run it in ECS instead of Lambda? I also have a ktor service that runs on Fargate. But since I was listening the Kotless talk on KotlinConf I’m thinking to give it a try and move the service to Lambda.
t

TanVD

12/07/2019, 8:05 PM
Under invariable middle load ECS may cost less. Thats why in case of Kotless + Ktor we provide both ways of deployment -- serverless and standard servers, so you can deploy firstly your app on a serverless platform and then switch to ECS, when you've reached reasonable number of users and profile of load is invariable.
But it really depends on a load and its profile -- how it varies, what is the average CPU time per request and so on.
d

daniel

12/07/2019, 8:11 PM
Okay yes that is true. In some scenarios it may cost less. I will still give the Lambdas a try and move my ECS service to Lambda.
👍 1
n

neil

12/11/2019, 10:19 AM
Shouldn't ECS also have a lower maximum response time with the time it takes Lambdas to spin up
t

TanVD

12/11/2019, 10:33 AM
Kotless has
autowarm
feature, so for the first user there is no difference. But under load, for new lambdas -- yes 🙂
15 Views