NORMA eResearch @NCI Library

Using Redis for persistent storage in serverless architecture to maintain state management

Kumar, Ankit (2022) Using Redis for persistent storage in serverless architecture to maintain state management. Masters thesis, Dublin, National College of Ireland.

[thumbnail of Master of Science]
Preview
PDF (Master of Science)
Download (1MB) | Preview
[thumbnail of Configuration manual]
Preview
PDF (Configuration manual)
Download (1MB) | Preview

Abstract

Serverless computing has been the talk of the decade, it provides a small runtime container that executes a function or task without the need of resource management, it is a type of Platform as a Service (PaaS) but at a much smaller functional level. The first cloud serverless service was introduced by AmazonWeb Services (AWS) in 2014, earlier it used to have a limit of 25 concurrent function limitations but now it can provide thousands of functions at a time because of the demand in the technology. Even with the dynamic growth of serverless computing, there have been some limitations in architecture that are still a major concern. Limitations such as inter-communication between functions, lack of persistent storage, resource selection for certain tasks e.g. allocating GPU for machine learning tasks, etc. In this paper, we will be discussing how we can implement a serverless Redis container to be accessed by serverless functions when it is needed. The approach will spawn a Redis container along with OpenWhisk actions and when the function is completed, the Redis container will be shut off to release the resources, similarly to how the serverless function works. The experiment is performed in an OpenStack instance that has similar machines as Amazon Web Services (AWS). We compared the connection of the Redis container with OpenWhisk actions against AWS Lambda and ElastiCache Redis. We measured the time of functions execution and the operations are done on the Redis database. From the experiments conducted, we concluded that our approach performance surpasses Lambda and ElastiCache stack by 85%, in production scenario the margin will be less though for the sake of the experiment we maintained the best configuration possible for the OpenWhisk framework and Redis container.

Item Type: Thesis (Masters)
Uncontrolled Keywords: OpenWhisk; Serverless; Amazon Web Services (AWS); Redis; ElastiCache
Subjects: Q Science > QA Mathematics > Electronic computers. Computer science
T Technology > T Technology (General) > Information Technology > Electronic computers. Computer science
T Technology > T Technology (General) > Information Technology > Cloud computing
Divisions: School of Computing > Master of Science in Cloud Computing
Depositing User: Tamara Malone
Date Deposited: 02 Dec 2022 18:02
Last Modified: 06 Dec 2022 18:06
URI: https://norma.ncirl.ie/id/eprint/5963

Actions (login required)

View Item View Item