<@UD02CTD2M> I am running ktor on ECS. Are there a...
# kotless
n
@TanVD I am running ktor on ECS. Are there any plans to support ECS services in kotless?
t
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
Certainly! We're currently writing our own dockerfile and cloudformation+ansible. Would be great to generate it
d
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
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
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
Shouldn't ECS also have a lower maximum response time with the time it takes Lambdas to spin up
t
Kotless has
autowarm
feature, so for the first user there is no difference. But under load, for new lambdas -- yes 🙂