# Serverless architecture efficiency: an exploratory study

**Authors:** Samuel Lavoie, Anthony Garant, Fabio Petrillo

arXiv: 1901.03984 · 2019-01-15

## TL;DR

This study compares serverless architecture and Apache Spark for parallelizable tasks, finding that serverless is efficient for real-time computing while Spark suits long-duration tasks, based on cost and performance metrics.

## Contribution

It provides an empirical comparison of serverless and Spark architectures for parallel tasks, highlighting their respective strengths in performance and cost efficiency.

## Key findings

- Serverless achieves comparable performance to Spark in compute time and cost.
- Lambda is suitable for real-time computing tasks.
- EMR is preferable for long-duration compute tasks.

## Abstract

Cloud service provider propose services to insensitive customers to use their platform. Different services can achieve the same result at different cost. In this paper, we study the efficiency of a serverless architecture for running highly parallelizable tasks to compare theses services in order to find the most efficient in term of performance and cost. More precisely, we look at the compute time and at the cost per task for a given task. The tasks studied is the count of the occurrence of a given word in a corpus. We compare the serverless architecture to the Apache Spark map reduce technique commonly used for this type of task. Using AWS Lambda for the serverless architecture and Amazon EMR for the Apache Spark map reduce, with similar compute power, we show that the serverless technique achieve comparable performance in term of compute time and cost. We observed that the lambda function is a great approach for real time computing, while EMR is preferable for task that require long compute time.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1901.03984/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/1901.03984/full.md

## References

18 references — full list in the complete paper: https://tomesphere.com/paper/1901.03984/full.md

---
Source: https://tomesphere.com/paper/1901.03984