[Paper Review] Faa$T: A Transparent Auto-Scaling Cache for Serverless Applications
Faa$T is a transparent, application-specific, auto-scaling in-memory cache for serverless functions that dynamically manages cache space and I/O bandwidth based on data access patterns and object sizes. It improves performance by up to 92% (57% average) and reduces costs by 99.99% compared to existing caching systems, without requiring application changes or external infrastructure.
Function-as-a-Service (FaaS) has become an increasingly popular way for users to deploy their applications without the burden of managing the underlying infrastructure. However, existing FaaS platforms rely on remote storage to maintain state, limiting the set of applications that can be run efficiently. Recent caching work for FaaS platforms has tried to address this problem, but has fallen short: it disregards the widely different characteristics of FaaS applications, does not scale the cache based on data access patterns, or requires changes to applications. To address these limitations, we present Faa\$T, a transparent auto-scaling distributed cache for serverless applications. Each application gets its own Faa\$T cache. After a function executes and the application becomes inactive, the cache is unloaded from memory with the application. Upon reloading for the next invocation, Faa\$T pre-warms the cache with objects likely to be accessed. In addition to traditional compute-based scaling, Faa\$T scales based on working set and object sizes to manage cache space and I/O bandwidth. We motivate our design with a comprehensive study of data access patterns in a large-scale commercial FaaS provider. We implement Faa\$T for the provider's production FaaS platform. Our experiments show that Faa\$T can improve performance by up to 92% (57% on average) for challenging applications, and reduce cost for most users compared to state-of-the-art caching systems, i.e. the cost of having to stand up additional serverful resources.
Motivation & Objective
- To address the limitations of existing FaaS caching systems that are non-transparent, lack auto-scaling, or rely on shared, monolithic caches.
- To reduce latency and cost in serverless applications by enabling per-application in-memory caching that scales with data access patterns and object sizes.
- To eliminate the need for users to manage caches or provision external resources, preserving the serverless abstraction.
- To improve performance for stateful and data-intensive serverless workloads like ML inference and data pipelines through transparent pre-warming and bandwidth-aware scaling.
Proposed method
- Each serverless function is paired with its own dedicated Faa$T cache, which is loaded and unloaded with the function, ensuring isolation and transparency.
- Faa$T pre-warms the cache with frequently accessed data upon function reload, leveraging application pre-warming to avoid cold starts.
- Cache size and I/O bandwidth are auto-scaled based on both computational load and data access characteristics, including working set size and object size.
- The system uses a hybrid scaling strategy that combines compute-based scaling with data-driven adaptation to optimize memory and network usage.
- Faa$T manages cache persistence and consistency policies per application, supporting different consistency models without application changes.
- It minimizes remote storage I/O by caching large objects and optimizing data transfer latency through bandwidth-aware instance scaling.
Experimental results
Research questions
- RQ1How can a caching system for serverless applications be designed to be fully transparent to users while still improving performance and reducing cost?
- RQ2What scaling strategies are most effective for managing cache space and I/O bandwidth in serverless workloads with highly variable access patterns and object sizes?
- RQ3Can application-specific caching with pre-warming significantly reduce latency in serverless functions without requiring changes to the application code?
- RQ4How does per-application caching compare to shared or monolithic caching in terms of performance, cost, and resource utilization?
- RQ5To what extent can auto-scaling based on data access patterns and object characteristics improve the efficiency of in-memory caching in serverless environments?
Key findings
- Faa$T improves application performance by up to 92% and by 57% on average compared to state-of-the-art caching systems.
- The system reduces cost by 99.99% compared to solutions requiring additional serverful infrastructure.
- Performance gains are most significant for data-intensive workloads such as Jupyter notebooks and ML inference pipelines.
- Faa$T effectively handles large objects (>10MB) by scaling I/O bandwidth with instance size, reducing transfer latency.
- The use of application pre-warming combined with cache pre-warming leads to faster function startup and reduced cold-start impact.
- The system scales efficiently with increasing vCPU and memory resources, achieving saturation at 8vCPU instances due to network bandwidth limits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.