optimizing cloud infrastructure costs with serverless architectures and kubernetes autoscaling strategies | pilput