Skip to main content
QUICK REVIEW

[Paper Review] InfiniCache: Exploiting Ephemeral Serverless Functions to Build a Cost-Effective Memory Cache

Ao Wang, Jingyuan Zhang Zhang|arXiv (Cornell University)|Jan 28, 2020
Caching and Content DeliveryComputer Science20 citations
TL;DR

InfiniCache proposes a serverless in-memory object cache built entirely on ephemeral cloud functions (e.g., AWS Lambda), using erasure coding and intelligent billing control to achieve pay-per-use elasticity. It reduces tenant costs by 31–96× compared to AWS ElastiCache while maintaining 95.4% data availability over one-hour windows and comparable performance to traditional in-memory caches.

ABSTRACT

Internet-scale web applications are becoming increasingly storage-intensive and rely heavily on in-memory object caching to attain required I/O performance. We argue that the emerging serverless computing paradigm provides a well-suited, cost-effective platform for object caching. We present InfiniCache, a first-of-its-kind in-memory object caching system that is completely built and deployed atop ephemeral serverless functions. InfiniCache exploits and orchestrates serverless functions' memory resources to enable elastic pay-per-use caching. InfiniCache's design combines erasure coding, intelligent billed duration control, and an efficient data backup mechanism to maximize data availability and cost-effectiveness while balancing the risk of losing cached state and performance. We implement InfiniCache on AWS Lambda and show that it: (1) achieves 31 -- 96X tenant-side cost savings compared to AWS ElastiCache for a large-object-only production workload, (2) can effectively provide 95.4% data availability for each one hour window, and (3) enables comparative performance seen in a typical in-memory cache.

Motivation & Objective

  • To address the high cost and inefficiency of caching large objects (MBs–GBs) in traditional in-memory key-value stores.
  • To explore whether ephemeral serverless functions can serve as a viable, cost-effective platform for stateful in-memory caching.
  • To design a system that maximizes data availability and performance while minimizing cost and mitigating risks of function reclamation and state loss.
  • To enable pay-per-use elasticity at the storage level by leveraging function memory and invocation-based billing.

Proposed method

  • Exploits serverless functions’ transparent function caching to retain in-memory state across invocations, enabling persistent caching without dedicated servers.
  • Applies erasure coding to provide fault tolerance against function reclamation, improve parallel bandwidth utilization, and mitigate straggler effects.
  • Implements a delta-sync-based data backup mechanism to maintain consistency and availability across function instances.
  • Controls billed duration via intelligent function invocation scheduling to minimize cost while preserving performance.
  • Orchestrates multiple functions to act as a distributed, elastic memory cache with load balancing and redundancy.
  • Uses object-level metadata and access patterns to guide caching decisions and optimize resource usage.

Experimental results

Research questions

  • RQ1Can ephemeral serverless functions be effectively used to build a scalable, cost-efficient in-memory object cache for large objects?
  • RQ2How can data availability and fault tolerance be ensured despite the transient nature and unpredictable reclamation of serverless functions?
  • RQ3To what extent can erasure coding and intelligent billing control reduce costs while maintaining low latency and high availability?
  • RQ4How does the performance and cost of a serverless-based cache compare to traditional in-memory caches like AWS ElastiCache?

Key findings

  • InfiniCache achieves 31–96× lower tenant-side cost compared to AWS ElastiCache for a large-object-only production workload.
  • The system maintains 95.4% data availability over each one-hour window, demonstrating strong resilience to function reclamation.
  • InfiniCache delivers performance comparable to traditional in-memory caches, with low-latency access for frequently accessed large objects.
  • Erasure coding effectively mitigates the impact of straggler functions and enables efficient fault tolerance with minimal storage overhead.
  • The delta-sync backup mechanism ensures consistent data recovery and reduces redundant data transfer.
  • The pay-per-use model based on function invocations results in significant cost savings, especially for workloads with high object reuse and low access frequency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.