Skip to main content

Disclosure: Efficient Instrumentation-Based Web App Migration for Liquid Computing

  • Conference paper
  • First Online:
Book cover Web Engineering (ICWE 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13362))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Sroczkowski, P.: 100 most popular languages on github in 2019 (2020). https://brainhub.eu/blog/most-popular-languages-on-github

  2. 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

    Google Scholar 

  3. 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)

    Google Scholar 

  4. 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)

    Google Scholar 

  5. 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)

    Google Scholar 

  6. 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)

    Google Scholar 

  7. 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

    Chapter  Google Scholar 

  8. 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)

    Google Scholar 

  9. JsonML. http://www.jsonml.org/

  10. MDN web docs: WeakMap. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap

  11. Iterable maps. https://github.com/tc39/proposal-weakrefs#iterable-weakmaps

  12. Octane Javascript benchmark. http://chromium.github.io/octane

Download references

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

Authors

Corresponding author

Correspondence to Soo-Mook Moon .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics