The University of Texas at Austin
Performance of Java in Function-as-a-Service computing
Abstract
dc:description.abstractOver the past several years serverless computing has rapidly grown in popularity because of its flexibility and low cost. Despite the name, serverless computing is not actually serverless. It simply means developers do not need to be aware of the servers because resources are allocated as needed, and developers are only charged for what they use. One of the newest forms of serverless computing is Function-as-a-Service (FaaS). FaaS provides a framework for executing modular pieces of code in response to an event, such as a user clicking a button in a web application. Developers using FaaS are only charged for the execution time of their functions. Although FaaS has many apparent benefits, relatively little is known about the performance of FaaS. Past work has shown that cold starts typically have a negative effect on latency, but the magnitude of the slowdown varies depending on provider and language [13, 16]. Sharad et al. recently performed a study on the Apache OpenWhisk FaaS platform and found that for functions written in Python, there is a significant slowdown compared to native execution and that the cold start time can be up to 10x the execution time of a short function [24]. The purpose of this report is to investigate the overhead due to containerization and cold starts for functions written in Java to determine whether the findings stated above hold regardless of language. I found that the container initialization time for Java was consistently less than half that of Python. However, Java has an additional overhead due to Java Virtual Machine (JVM) warmup which contributes to the execution time in a cold start scenario. Java functions which caused a cold start showed up to a 50x slowdown compared to native execution for very short functions and a 19x slowdown on average. Java functions which executed in a warm environment still had a significant overhead with a 5x slowdown on average. Overall, Java functions had a greater containerization overhead than Python functions. However, Java still had a faster execution time than Python on average—3.6x and 6.7x faster for warm and cold starts, respectively.
Degree
thesis:*- Name thesis:degree_name
- Master of Science in Engineering
- Level thesis:degree_level
- Masters
- Discipline thesis:degree_discipline
- Electrical and Computer Engineering
- Department thesis:degree_department
- Electrical and Computer Engineering
- Grantor
- The University of Texas at Austin
- Year dc:date.issued
- 2020
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Dowd, Abigail Lauren
- Advisor dc:contributor.advisor
-
- John, Lizy Kurian
Subjects
dc:subject × 4Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/2152/84357