How do I know whether to use Function Compute or ECS?
The core trade-off is control vs. ease of management. Elastic Compute Service (ECS) gives you full control over your infrastructure; Function Compute abstracts it away so you can focus on your code.
Choose ECS when
You need to customize your OS, network configuration, security settings, software logging, software monitoring, or load balancing rules.
Your workload requires a specific software stack and you need to customize an end-to-end software stack solution.
You want to configure your own scaling logic or manage container clusters with Container Service for Kubernetes.
You need full control and ownership of your compute instances.
Choose Function Compute when
You want to skip infrastructure and OS management entirely.
Your workload needs automatic scaling based on requests, without managing the underlying infrastructure.
You want to focus on business logic, not on servers.