[Paper Review] A FaaS File System for Serverless Computing
This paper proposes FaaSFS, a shared POSIX-compliant file system for serverless computing that leverages function-grained fault tolerance and optimistic transactional semantics to provide scalable, high-performance state management. By treating cloud function boundaries as natural transaction commit points and using local caching with conflict resolution, FaaSFS achieves near-local performance while maintaining POSIX consistency, enabling unmodified stateful applications to run serverlessly.
Serverless computing with cloud functions is quickly gaining adoption, but constrains programmers with its limited support for state management. We introduce a shared file system for cloud functions. It offers familiar POSIX semantics while taking advantage of distinctive aspects of cloud functions to achieve scalability and performance beyond what traditional shared file systems can offer. We take advantage of the function-grained fault tolerance model of cloud functions to proceed optimistically using local state, safe in the knowledge that we can restart if cache reads or lock activity cannot be reconciled upon commit. The boundaries of cloud functions provide implicit commit and rollback points, giving us the flexibility to use transaction processing techniques without changing the programming model or API. This allows a variety of stateful sever-based applications to benefit from the simplicity and scalability of serverless computing, often with little or no modification.
Motivation & Objective
- To address the lack of native state management in serverless computing, which forces developers to use proprietary, non-portable storage APIs.
- To enable familiar POSIX file system semantics in a serverless environment without requiring application modifications.
- To leverage the inherent properties of cloud functions—finite execution duration and idempotent retries—for transactional consistency and fault tolerance.
- To demonstrate that a shared file system with POSIX semantics can achieve performance competitive with traditional NFS in the serverless model.
- To explore whether transactional isolation and caching can be effectively combined in a serverless context to ensure consistency and scalability.
Proposed method
- FaaSFS uses function boundaries as natural transaction commit and rollback points, enabling transparent transaction management without changing the programming model.
- It employs optimistic concurrency control with local caching, allowing fast local file operations and resolving conflicts only at commit time.
- The system wraps all file system interactions in a transaction mechanism that ensures consistency when cache reads or lock operations conflict.
- It uses a fine-grained cache update mechanism to handle concurrent modifications, especially during file length changes, improving concurrency.
- The design integrates with existing FaaS platforms by relying on idempotent function execution and retry semantics for fault tolerance.
- It maps POSIX semantics to a transactional database model, carefully aligning memory consistency guarantees with transaction isolation levels.
Experimental results
Research questions
- RQ1Can a POSIX-compliant file system be efficiently and consistently implemented in a serverless environment with stateless functions?
- RQ2How can transactional semantics be efficiently composed with local caching to achieve high performance in serverless workloads?
- RQ3To what extent can the inherent fault tolerance and idempotency of cloud functions be leveraged to simplify consistency and recovery in a file system?
- RQ4Can FaaSFS achieve performance comparable to traditional NFS while supporting unmodified applications?
- RQ5What are the trade-offs between strong consistency (serializability) and weaker consistency models in the context of serverless file systems?
Key findings
- FaaSFS successfully runs unmodified real-world applications, including a full-stack web blog, demonstrating practical compatibility with existing software.
- The system achieves performance comparable to traditional NFS-based file systems in synthetic benchmarks such as Filebench and TPC-C.
- Optimistic concurrency control with local caching enables high throughput and low latency, even under concurrent access.
- The use of function boundaries as transaction boundaries allows transparent transaction management without modifying the application programming model.
- Conflict resolution during commit is effective and efficient, ensuring consistency while maintaining high scalability.
- The prototype demonstrates that a shared, POSIX-compliant file system is feasible in serverless environments, opening the door for broader adoption of serverless computing.
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.