Abstract
Web App migration means capturing a snapshot of the execution state of an web app on a device, and restoring it on another device to continue its execution, for cross-device liquid computing. Although web apps are relatively easy to migrate due to its high portability, there is a JavaScript language feature called closure, which complicates migration since it requires migrating the variable states of already-finished outer functions. One approach of web app migration is to instrument the source code to trace the closure variables, yet it often suffers from performance slowdown, especially for multiple migrations. In this paper, we propose a new instrumentation-based technique called Disclosure, which moves the declarations of closure variables to a managed data structure and replaces closure variables by the corresponding references to the data structure. This can improve the runtime performance while enhancing security. We evaluated our work with eight Octane benchmarks and four real web apps. The runtime performance penalty due to Disclosure is 0%–15%, which is much better than the result of the latest instrumentation-based work that supports deep closures and multiple migrations, as Disclosure. Real web apps are also shown to migrate seamlessly, even multiple times.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Sroczkowski, P.: 100 most popular languages on github in 2019 (2020). https://brainhub.eu/blog/most-popular-languages-on-github
Bellucci, F., Ghiani, G., Paternò, F., Santoro C,: Engineering javascript state persistence of web applications migrating across multiple devices. In Proceedings of the 3rd ACM SIGCHI symposium on Engineering interactive computing systems, pages 105–110. ACM, 2011
Lo, J.T.K., Wohlstadter, E., Mesbah, A.: Imagen: runtime migration of browser sessions for JavaScript web applications. In: Proceedings of the 22nd international conference on World Wide Web (WWW), pp. 815–826. ACM (2013)
Oh, J., Kwon, J., Park, H., Moon, S.-M.: Migration of web applications with seamless execution. In: 2015 ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments (VEE). ACM (2015)
Kwon, J.-W., Moon, S.-M.: Web application migration with closure reconstruction. In: Proceedings of the 26th International Conference on World Wide Web (WWW), pp. 133–142 (2017)
Gascon-Samson, J., Jung, K., Goyal, S., Rezaiean-Asel, A., Pattabiraman, K.: ThingsMigrate: platform-independent migration of stateful JavaScript IoT applications. In: 32nd European Conference on Object-Oriented Programming. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik (2018)
Mikkonen, T., Systä, K., Pautasso, C.: Towards liquid web applications. In: Cimiano, P., Frasincar, F., Houben, G.-J., Schwabe, D. (eds.) ICWE 2015. LNCS, vol. 9114, pp. 134–143. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-19890-3_10
Van der Cruysse, J., Hoste, L., Van Raemdonck, W.: FlashFreeze: low-overhead JavaScript instrumentation for function serialization. In: Proceedings of the 4th ACM SIGPLAN International Workshop on Meta-Programming Techniques and Reflection, pp. 31–39 (2019)
JsonML. http://www.jsonml.org/
MDN web docs: WeakMap. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
Iterable maps. https://github.com/tc39/proposal-weakrefs#iterable-weakmaps
Octane Javascript benchmark. http://chromium.github.io/octane
Acknowledgement
This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No. 2021-0-00180, 50%) and (No. 2021-0-00136, 50%).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this paper
Cite this paper
Kim, JY., Moon, SM. (2022). Disclosure: Efficient Instrumentation-Based Web App Migration for Liquid Computing. In: Di Noia, T., Ko, IY., Schedl, M., Ardito, C. (eds) Web Engineering. ICWE 2022. Lecture Notes in Computer Science, vol 13362. Springer, Cham. https://doi.org/10.1007/978-3-031-09917-5_9
Download citation
DOI: https://doi.org/10.1007/978-3-031-09917-5_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-09916-8
Online ISBN: 978-3-031-09917-5
eBook Packages: Computer ScienceComputer Science (R0)