Serverless Sandbox Checkpoint Rewind for Fast Isolation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing serverless computing technologies face challenges in maintaining statelessness between function requests, leading to potential leakage of private data due to incomplete isolation, and the use of warm sandboxes does not guarantee full isolation, reducing processing speed.
Innovation Solution
A checkpoint and rewind method is implemented in a serverless platform, where the initial state of a sandbox is stored and restored using a buddy page table and copy-on-write algorithm, ensuring complete isolation and data residue removal.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If sandbox initialization is performed to maintain statelessness, then isolation between function requests is improved, but processing speed deteriorates
Solution Approach 1:
The patent performs preliminary actions by creating a checkpoint of the sandbox state before function execution and preparing for potential rewind operations. This allows the sandbox to be quickly reset to its initial state without full re-initialization, resolving the contradiction between maintaining isolation and preserving processing speed.
Solution Approach 2:
The patent uses copying mechanisms to create and restore sandbox states. By maintaining copies of the initial sandbox state and using checkpoint/rewind operations, the system achieves both isolation (through state copying) and speed (by avoiding full re-initialization).
2Productivity
If warm sandbox technology is used to improve processing speed, then productivity is improved, but isolation between function requests deteriorates leading to data leakage
Solution Approach 1:
The patent performs preliminary actions by creating a checkpoint of the sandbox state before function execution and preparing for potential rewind operations. This allows the sandbox to be quickly reset to its initial state without full re-initialization, resolving the contradiction between maintaining isolation and preserving processing speed.
Solution Approach 2:
The patent implements discarding and recovering by rewinding the sandbox state to its initial checkpoint after function execution. This discards any data residues from the previous function while recovering the clean initial state, ensuring isolation is maintained even when reusing the same sandbox for improved productivity.
Data Source
AI summary
Disclosed is a checkpoint and rewind method in a serverless platform. The checkpoint and rewind method in a serverless platform performed by at least one processor includes receiving a function execution request on the serverless platform, storing an initial state of a sandbox by performing a checkpoint operation on the sandbox associated with the function execution request, and restoring a state of the sandbox to the stored initial state by performing a rewind operation on the sandbox after a task corresponding to the function execution request is completed.


