recently, we migrated from lambda to fargate to optimize the performance of a node.js (nestjs) application. through trial and error, we experimented with various task specs (cpu and memory...
我们将node.js应用从lambda迁移到fargate,以解决冷启动和超时问题。fargate支持灵活配置,我们选择了2vcpu和4096mb内存,优化单线程性能并减少崩溃。通过设置60% cpu利用率的自动扩展规则,实现1到10个任务的动态调整,平衡性能和成本。