Posted On: Jul 31, 2023

Customers running applications on Amazon Elastic Container Service (ECS) with Amazon Fargate can now leverage Seekable OCI (SOCI), a technology that helps applications deploy and scale out faster by enabling the containers to start without waiting for the entire container image to be downloaded.

Most methods for launching containers download the entire container image from a remote container registry before starting the container. Waiting for the entire image to download is unnecessary as in many cases only a small portion of it is needed for startup. SOCI reduces this wait time by lazily loading the image data in parallel to application startup, enabling containers to start with only a fraction of the image.

To use SOCI, you simply need to build an index (SOCI Index) of the container image files. Since this index is generated separately from the image and stored as a separate artifact in the registry, the image and its digest do not change. Furthermore, you don’t have to change the task definitions. When starting an Amazon ECS task, Amazon Fargate automatically detects if a SOCI index for a container image exists and starts it without waiting for the entire image to download. This enables applications to scale out quickly and reduces the roll out time for application updates.

You can start using SOCI for applications running on Amazon ECS with Amazon Fargate at no additional cost. You will just be charged for storing the SOCI index in Amazon Elastic Container Registry (ECR). To learn more and get started, please visit the documentation. This feature is available in all Amazon Web Services regions where Amazon ECS, Amazon Fargate, and Amazon ECR are available, including the Amazon Web Services China (Beijing) Region, operated by Sinnet and the Amazon Web Services China (Ningxia) Region, operated by NWCD.