Articles | Open Access | DOI: https://doi.org/10.37547/tajet/Volume05Issue05-09A

Serverless Computing & Function-as-a-Service (FaaS) Optimization

Nishanth Reddy Pinnapareddy , Senior Software Engineer California USA

Abstract

Function-as-a-Service (FaaS) in cloud computing is a critical optimization problem that needs to be tackled, including cold start latency, resource inefficiency, state management, and more. While FaaS provides obvious scalability and lower cost benefits, the lack of availability of resources and the problem of cold starts to prevent it from being used for high-performance applications. Pre-warming, snapshotting, and on-demand instantiation with lightweight runtimes, such as WebAssembly, are other ways to minimize cold start delays. It also benchmarks major FaaS platforms (AWS Lambda, Google Cloud Functions, Azure Functions, and OpenFaaS) and measures latency, throughput, and scalability metrics. The study also considers how to manage the resource, for instance, using auto-scaling, memory allocation, and request batching to enhance cost efficiency and performance. The study covers security challenges in multi-tenant environments and solutions for stateful applications in usually stateless serverless architectures with Faast.js, Knative, and OpenWhisk. Another area of research is edge computing and architectures for multiple clouds to improve the deployment of FaaS. Incorporating the lessons from this study gives it enough flexibility to adjust functions as applications in a real-world enterprise environment, especially in high-performance and data-sensitive applications. The study also provides security practices like function isolation and encryption to secure data in multi-tenancy environments for reliable, secure, and efficient serverless computing. The contribution to FaaS optimization and security for various use cases is achieved.

Keywords

FaaS, cold start optimization, performance benchmarking, serverless security, stateful serverless, multi-cloud architecture

References

Abid, H. (2022). A review on the most common pricing strategies. International Journal of Finance, Insurance and Risk Management.

Ascigil, O., Tasiopoulos, A. G., Phan, T. K., Sourlas, V., Psaras, I., & Pavlou, G. (2021). Resource provisioning and allocation in function-as-a-service edge-clouds. IEEE Transactions on Services Computing, 15(4), 2410-2424.

Aslanpour, M. S., Gill, S. S., & Toosi, A. N. (2020). Performance evaluation metrics for cloud, fog and edge computing: A review, taxonomy, benchmarks and standards for future research. Internet of Things, 12, 100273.

Bannon, R. (2022). Leveraging Machine Learning to Reduce Cold Start Latency of Containers in Serverless Computing (Doctoral dissertation, Dublin, National College of Ireland).

Bass, L., Weber, I., & Zhu, L. (2015). DevOps: A software architect's perspective. Addison-Wesley Professional.

Bocci, A., Forti, S., Ferrari, G. L., & Brogi, A. (2021). Secure FaaS orchestration in the fog: how far are we?. Computing, 103(5), 1025-1056.

Chavan, A. (2021). Eventual consistency vs. strong consistency: Making the right choice in microservices. International Journal of Software and Applications, 14(3), 45-56. https://ijsra.net/content/eventual-consistency-vs-strong-consistency-making-right-choice-microservices

Chen, N., Cardozo, N., & Clarke, S. (2016). Goal-driven service composition in mobile and pervasive computing. IEEE Transactions on Services Computing, 11(1), 49-62.

Cordingly, R., Xu, S., & Lloyd, W. (2022, September). Function memory optimization for heterogeneous serverless platforms with cpu time accounting. In 2022 IEEE international conference on cloud engineering (IC2E) (pp. 104-115). IEEE.

Díaz, M., Martín, C., & Rubio, B. (2016). State-of-the-art, challenges, and open issues in the integration of Internet of things and cloud computing. Journal of Network and Computer applications, 67, 99-117.

Eryurek, E., Gilad, U., Lakshmanan, V., Kibunguchy-Grant, A., & Ashdown, J. (2021). Data governance: The definitive guide. " O'Reilly Media, Inc.".

Fatahi Baarzi, A. (2021). Multi-Cloud Serverless Deployment.

George, G., Bakir, F., Wolski, R., & Krintz, C. (2020, November). Nanolambda: Implementing functions as a service at all resource scales for the internet of things. In 2020 IEEE/ACM Symposium on Edge Computing (SEC) (pp. 220-231). IEEE.

Gortázar, F., Gallego, M., Maes-Bermejo, M., Chicano-Capelo, I., & Santos, C. (2022). Cost-effective load testing of WebRTC applications. Journal of Systems and Software, 193, 111439.

Hilbig, A., Lehmann, D., & Pradel, M. (2021, April). An empirical study of real-world webassembly binaries: Security, languages, use cases. In Proceedings of the web conference 2021 (pp. 2696-2708).

Hoffman, K. (2019). Programming WebAssembly with Rust: unified development for web, mobile, and embedded applications.

Hong, C. H., & Varghese, B. (2019). Resource management in fog/edge computing: a survey on architectures, infrastructure, and algorithms. ACM Computing Surveys (CSUR), 52(5), 1-37.

Hossin, M., & Sulaiman, M. N. (2015). A review on evaluation metrics for data classification evaluations. International journal of data mining & knowledge management process, 5(2), 1.

Hsu, T. H. C. (2019). Practical security automation and testing: tools and techniques for automated security scanning and testing in devsecops. Packt Publishing Ltd.

Karwa, K. (2025). Navigating the digital shift: The evolution of career services in the digital age. International Journal of Social Research and Application, 10. https://journalijsra.com/content/navigating-digital-shift-evolution-career-services-digital-age

Kumar, A. (2019). The convergence of predictive analytics in driving business intelligence and enhancing DevOps efficiency. International Journal of Computational Engineering and Management, 6(6), 118-142. Retrieved from https://ijcem.in/wp-content/uploads/THE-CONVERGENCE-OF-PREDICTIVE-ANALYTICS-IN-DRIVING-BUSINESS-INTELLIGENCE-AND-ENHANCING-DEVOPS-EFFICIENCY.pdf

Li, Y., Lin, Y., Wang, Y., Ye, K., & Xu, C. (2022). Serverless computing: state-of-the-art, challenges and opportunities. IEEE Transactions on Services Computing, 16(2), 1522-1539.

Manner, J., Endreß, M., Heckel, T., & Wirtz, G. (2018, December). Cold start influencing factors in function as a service. In 2018 IEEE/ACM International Conference on Utility and Cloud Computing Companion (UCC Companion) (pp. 181-188). IEEE.

Mvondo, D., Bacou, M., Nguetchouang, K., Ngale, L., Pouget, S., Kouam, J., ... & Tchana, A. (2021, April). OFC: an opportunistic caching system for FaaS platforms. In Proceedings of the Sixteenth European Conference on Computer Systems (pp. 228-244).

Nyati, S. (2018). Revolutionizing LTL carrier operations: A comprehensive analysis of an algorithm-driven pickup and delivery dispatching solution. International Journal of Science and Research (IJSR), 7(2), 1659-1666. Retrieved from https://www.ijsr.net/getabstract.php?paperid=SR24203183637

Nyati, S. (2018). Transforming telematics in fleet management: Innovations in asset tracking, efficiency, and communication. International Journal of Science and Research (IJSR), 7(10), 1804-1810. Retrieved from https://www.ijsr.net/getabstract.php?paperid=SR24203184230

Palumbo, F., Aceto, G., Botta, A., Ciuonzo, D., Persico, V., & Pescapé, A. (2021). Characterization and analysis of cloud-to-user latency: The case of Azure and AWS. Computer Networks, 184, 107693.

Paul, B., & Rao, M. (2022). Zero-trust model for smart manufacturing industry. Applied Sciences, 13(1), 221.

Pedone, G., & Mezgár, I. (2018). Model similarity evidence and interoperability affinity in cloud-ready Industry 4.0 technologies. Computers in industry, 100, 278-286.

Pedone, G., & Mezgár, I. (2018). Model similarity evidence and interoperability affinity in cloud-ready Industry 4.0 technologies. Computers in industry, 100, 278-286.

Qu, C., Calheiros, R. N., & Buyya, R. (2016). A reliable and cost-efficient auto-scaling system for web applications using heterogeneous spot instances. Journal of Network and Computer Applications, 65, 167-180.

Raza, A., Matta, I., Akhtar, N., Kalavri, V., & Isahagian, V. (2021). Sok: Function-as-a-service: From an application developer’s perspective. Journal of Systems Research, 1(1).

Roy, R. B., Patel, T., & Tiwari, D. (2022, February). Icebreaker: Warming serverless functions better with heterogeneity. In Proceedings of the 27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (pp. 753-767).

Sangapu, S. S., Panyam, D., & Marston, J. (2022). The Definitive Guide to Modernizing Applications on Google Cloud: The what, why, and how of application modernization on Google Cloud. Packt Publishing Ltd.

Sharma, S. (2016). Expanded cloud plumes hiding Big Data ecosystem. Future Generation Computer Systems, 59, 63-92.

Shojafar, M., Cordeschi, N., & Baccarelli, E. (2016). Energy-efficient adaptive resource management for real-time vehicular cloud services. IEEE Transactions on Cloud computing, 7(1), 196-209.

Silva, P., Fireman, D., & Pereira, T. E. (2020, December). Prebaking functions to warm the serverless cold start. In Proceedings of the 21st International Middleware Conference (pp. 1-13).

Turhan, M., Scopelliti, G., Baumann, C., Truyen, E., Muehlberg, J. T., & Petik, M. (2021). The Trust Model For Multi-tenant 5G Telecom Systems Running Virtualized Multi-component Services.

Weyns, D., & Gerostathopoulos, I. (2022). Analysis Report Survey on Self-Adaptation in Industry.

Article Statistics

Copyright License

Download Citations

How to Cite

Nishanth Reddy Pinnapareddy. (2023). Serverless Computing & Function-as-a-Service (FaaS) Optimization. The American Journal of Engineering and Technology, 5(05), 17–41. https://doi.org/10.37547/tajet/Volume05Issue05-09A