Abstract
The serverless computing model extends potential deployment options for cloud applications, by allowing users to focus on building and deploying their code without needing to configure or manage the underlying computational resources. Cost and latency constraints in stream processing user applications often push computations closer to the sources of data, leading to challenges for dynamically distributing stream operators across the edge/fog/cloud heterogeneous nodes and the routing of data flows. Various approaches to support operator placement across edge and cloud resources and data routing are beginning to be addressed through the serverless model. Understanding how stream processing operators can be mapped into serverless functions also offers cost incentives for users – as charging is now on a subsecond basis (rather than hourly). A dynamic Petri net model of serverless functions is proposed in this work, which takes account of the computational requirements of functions, the resources on which these functions are hosted, and key parameters that impact the behaviour of serverless functions – such as warm/cold start up times. The model can be used by developers/users of serverless functions to understand how deployment optimisation can be used to reduce application time, and to analyse various scenarios on choosing function granularity, data size and cost.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
- 2.
- 3.
The models in Reference nets and the simulation environment are made available through a Docker container with the aim of enhancing the reproducibility of experiments: https://github.com/rtolosana/fog-modelling.
References
Lefevre, X.: Is serverless cheaper for your use case? Find out with this calculator. https://medium.com/serverless-transformation/is-serverless-cheaper-for-your-use-case-find-out-with-this-calculator-2f8a52fc6a68. Accessed June 2021
Microsoft: Azure Function Pricing. https://azure.microsoft.com/en-gb/pricing/details/functions/. Accessed June 2021
Amazon: AWS Lambda Pricing. https://aws.amazon.com/lambda/pricing/. Accessed June 2021
Google: Google Function Pricing. https://cloud.google.com/functions/pricing. Accessed June 2021
González, L.M.V., Rodero-Merino, L.: Finding your way in the fog: towards a comprehensive definition of fog computing. Comput. Commun. Rev. 44(5), 27–32 (2014)
Renart, E.G., Da Silva Veith, A., Balouek-Thomert, D., De Assuncao, M.D., Lefevre, L., Parashar, M.: Distributed operator placement for IoT data analytics across edge and cloud resources. In: 2019 19th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGRID), pp. 459–468 (2019)
Peña, M.A.L., Fernández, I.M.: SAT-IoT: an architectural model for a high-performance fog/edge/cloud IoT platform. In: 5th IEEE World Forum on Internet of Things, WF-IoT 2019, Limerick, Ireland, 15–18 April 2019, pp. 633–638. IEEE (2019)
Margariti, S.V., Dimakopoulos, V.V., Tsoumanis, G.: Modeling and simulation tools for fog computing a comprehensive survey from a cost perspective. Future Internet 12(5), 89 (2020)
Lin, C., Khazaei, H.: Modeling and optimization of performance and cost of serverless applications. IEEE Trans. Parallel Distrib. Syst. 32(3), 615–632 (2021)
Winzinger, S., Wirtz, G.: Model-based analysis of serverless applications. In: 2019 IEEE/ACM 11th International Workshop on Modelling in Software Engineering (MiSE), pp. 82–88 (2019)
Ntumba, P., Georgantas, N., Christophides, V.: Scheduling continuous operators for IoT edge analytics. In: Proceedings of the 4th International Workshop on Edge Systems, Analytics and Networking, pp. 55–60. Association for Computing Machinery (2021)
Murata, T.: Petri nets: properties, analysis and applications. Proc. IEEE 77(4), 541–580 (1989)
Tolosana-Calasanz, R., Bañares, J.Á., Pham, C., Rana, O.F.: Enforcing QoS in scientific workflow systems enacted over cloud infrastructures. J. Comput. Syst. Sci. 78(3), 1300–1315 (2012)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Tolosana-Calasanz, R., Castañé, G.G., Bañares, J.Á., Rana, O. (2021). Modelling Serverless Function Behaviours. In: Tserpes, K., et al. Economics of Grids, Clouds, Systems, and Services. GECON 2021. Lecture Notes in Computer Science(), vol 13072. Springer, Cham. https://doi.org/10.1007/978-3-030-92916-9_9
Download citation
DOI: https://doi.org/10.1007/978-3-030-92916-9_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-92915-2
Online ISBN: 978-3-030-92916-9
eBook Packages: Computer ScienceComputer Science (R0)