Enhancements and Optimizations for Web Application Migration

권진우 · Seoul National University Open Repository (Seoul National University) · 2018

Web apps can play an important role for the era of ubiquitous computing since they can run on any smart or IoT devices equipped with a browser.This advantage of portability and simplicity can be extended further to allow an interesting user experience called web app migration.That is, we can save the execution state of a running web app in the form of another web app called the snapshot, transmit it to another device, and continue the execution by simply running the snapshot on the browser.In this paper, we study and develop the web app migration framework in various ways.This paper is composed of two main parts.The enhancements part advances the framework by supporting a JavaScript language feature that is challenging to serialize, yet is frequently used in the real world.The optimizations part advances the framework by minifying the size of the serialized result and thus accelerates the migration process.We enhanced the web app migration framework by serializing JavaScript closures.separating the app objects as well.This lead to the second approach, which we named WebDelta.WebDelta traverses the current state of every object in a heap and save only those that are modified from the initial state.We modeled the relationships between JavaScript objects as a directed graph to efficiently and completely serialize the delta of JavaScript states.Also, we identified and resolved challenges regarding serializing event handlers attached to the DOM (Document Object Model) objects.The evaluation showed that our approach could reduce 93% of the serialized file size and 63% of the total migration time.

Read the paper · More papers on PaperTik