When to use Fargate?
As discussed in the introduction to this chapter, AWS Fargate is a service that allows you to deploy your container-based applications, without requiring you to deploy any ECS container instances, auto-scaling groups, or any of the associated operational requirements that come with managing ECS cluster infrastructure. This positions AWS Fargate as a serverless technology that sits somewhere between running Functions as a Service using AWS Lambda and running your own infrastructure using traditional ECS clusters and ECS container instances.
Although Fargate is a great technology, it is important to understand that Fargate is very young (at least at the time of writing this book), and it does come with some limitations that may make it unsuitable for some use cases, outlined as follows:
- No Persistent Storage: Fargate does not currently support persistent storage, so if your applications need to use persistent Docker volumes, you should use an alternative service, such as...