On the FaaS track: Building stateful distributed applications with serverless architectures

  • Daniel Barcelona-Pons
  • , Marc Sánchez-Artigas
  • , Gerard París
  • , Pierre Sutra
  • , Pedro García-López

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Serverless computing is an emerging paradigm that greatly simplifies the usage of cloud resources and suits well to many tasks. Most notably, Function-as-a-Service (FaaS) enables programmers to develop cloud applications as individual functions that can run and scale independently. Yet, due to the disaggregation of storage and compute resources in FaaS, applications that require fine-grained support for mutable state and synchronization, such as machine learning and scientific computing, are hard to build. In this work, we present Crucial, a system to program highly-concurrent stateful applications with serverless architectures. Its programming model keeps the simplicity of FaaS and allows to port effortlessly multi-threaded algorithms to this new environment. Crucial is built upon the key insight that FaaS resembles to concurrent programming at the scale of a data center. As a consequence, a distributed shared memory layer is the right answer to the need for fine-grained state management and coordination in serverless. We validate our system with the help of micro-benchmarks and various applications. In particular, we implement two common machine learning algorithms: k-means clustering and logistic regression. For both cases, Crucial obtains superior or comparable performance to an equivalent Spark cluster.

Original languageEnglish
Title of host publicationMiddleware 2019 - Proceedings of the 2019 20th International Middleware Conference
PublisherAssociation for Computing Machinery, Inc
Pages41-54
Number of pages14
ISBN (Electronic)9781450370097
DOIs
Publication statusPublished - 9 Dec 2019
Event20th ACM/IFIP/USENIX Middleware Conference, Middleware 2019 - Davis, United States
Duration: 9 Dec 201913 Dec 2019

Publication series

NameMiddleware 2019 - Proceedings of the 2019 20th International Middleware Conference

Conference

Conference20th ACM/IFIP/USENIX Middleware Conference, Middleware 2019
Country/TerritoryUnited States
CityDavis
Period9/12/1913/12/19

Keywords

  • FaaS
  • In-memory
  • Serverless
  • Stateful
  • Synchronization

Fingerprint

Dive into the research topics of 'On the FaaS track: Building stateful distributed applications with serverless architectures'. Together they form a unique fingerprint.

Cite this