Advertisement

Efficient Model Repository for Web Applications

  • Sergejs KozlovičsEmail author
Conference paper
Part of the Communications in Computer and Information Science book series (CCIS, volume 838)

Abstract

Many model-based applications have been developed with standalone usage in mind. When migrating such applications to the web, we have to think about multiple users competing for limited server resources. In addition, we encounter the need to synchronize models via the network for client-side access. Thus, there is the risk that the model storage could become a bottleneck.

We propose a model repository that deals with these issues by using an efficient encoding of the model that resembles its Kolmogorov complexity. The encoding is suitable for direct sending over the network (with almost no overhead); it can also be used “as-is” in memory-mapped files, thus, utilizing the OS paging mechanism. By adding just 3 automatic indices, all traverse and query operations can be implemented efficiently. Our tests show that the proposed model repository outperforms other repositories concerning both CPU and memory and is able to hold 10,000 and more instances at the same time on a single server.

Keywords

Models Model repository Web applications 

Notes

Acknowledgements

The work has been supported by European Regional Development Fund within the project #1.1.1.2/16/I/001, application #1.1.1.2/VIAA/1/16/214 “Model-Based Web Application Infrastructure with Cloud Technology Support”.

References

  1. 1.
    Eclipse Modeling Framework (EMF, Eclipse Modeling subproject). http://www.eclipse.org/emf
  2. 2.
    OWL 2 Web Ontology Language document overview (second edition). http://www.w3.org/TR/owl2-overview/
  3. 3.
    OWL Web Ontology Language reference. http://www.w3.org/TR/owl-ref/
  4. 4.
    Hellerstein, J.M., et al.: Ground: a data context service. In: Proceedings of CIDR (2017)Google Scholar
  5. 5.
    Ambler, S.: Mapping objects to relational databases: O/R mapping in detail. http://www.agiledata.org/essays/mappingObjects.html
  6. 6.
    Anuja, K.: Object Relational Mapping. Ph.D. thesis, Cochin University of Science and Technology (2007)Google Scholar
  7. 7.
    Barzdins, J., Kalnins, A., Rencis, E., Rikacovs, S.: Model transformation languages and their implementation by bootstrapping method. In: Avron, A., Dershowitz, N., Rabinovich, A. (eds.) Pillars of Computer Science. LNCS, vol. 4800, pp. 130–145. Springer, Heidelberg (2008).  https://doi.org/10.1007/978-3-540-78127-1_8CrossRefGoogle Scholar
  8. 8.
    Jouault, F., Kurtev, I.: Transforming models with ATL. In: Bruel, J.-M. (ed.) MODELS 2005. LNCS, vol. 3844, pp. 128–138. Springer, Heidelberg (2006).  https://doi.org/10.1007/11663430_14CrossRefGoogle Scholar
  9. 9.
    Kalnins, A., Barzdins, J., Celms, E.: Model transformation language MOLA. In: Aßmann, U., Aksit, M., Rensink, A. (eds.) MDAFA 2003-2004. LNCS, vol. 3599, pp. 62–76. Springer, Heidelberg (2005).  https://doi.org/10.1007/11538097_5CrossRefGoogle Scholar
  10. 10.
    Kegel, D.: The C10K problem. http://www.kegel.com/c10k.html
  11. 11.
    Kemp, S.: Digital in 2018: World’s internet users pass the 4 billion mark. wearesocial.com blog. https://wearesocial.com/blog/2018/01/global-digital-report-2018
  12. 12.
    Knuth, D.E.: The Art of Computer Programming, Sorting and Searching, 2nd edn., vol. 3. Addison Wesley Longman Publishing Co., Inc., Redwood City (1998)Google Scholar
  13. 13.
    Kolovos, D., Rose, L., Paige, R.: The Epsilon Book. http://www.eclipse.org/epsilon/doc/book/
  14. 14.
    Kozlovics, S.: The orchestra of multiple model repositories. In: van Emde Boas, P., Groen, F.C.A., Italiano, G.F., Nawrocki, J., Sack, H. (eds.) SOFSEM 2013. LNCS, vol. 7741, pp. 503–514. Springer, Heidelberg (2013).  https://doi.org/10.1007/978-3-642-35843-2_43CrossRefGoogle Scholar
  15. 15.
    Object Management Group: OMG Meta Object Facility (MOF) Core Specification Version 2.4.1 (2011)Google Scholar
  16. 16.
    Object Management Group: MOF Support For Semantic Structures (SMOF) (2012). http://www.omg.org/spec/SMOF/
  17. 17.
    Object Management Group: Meta Object Facility (MOF) 2.0 Query/View/Transformation Specification, Version 1.3. formal/16-06-03 (2016)Google Scholar
  18. 18.
    Opmanis, M., Čerāns, K.: Multilevel data repository for ontological and meta-modeling. In: Databases and Information Systems VI - Selected Papers from the Ninth International Baltic Conference, DB&IS 2010 (2011)Google Scholar
  19. 19.
    Pacaci, A., Zhou, A., Lin, J., Özsu, M.T.: Do we need specialized graph databases?: benchmarking real-time social networking applications. In: Proceedings of the Fifth International Workshop on Graph Data-management Experiences & Systems, GRADES 2017, pp. 12:1–12:7. ACM, New York (2017)Google Scholar
  20. 20.
    Steinberg, D., Budinsky, F., Paternostro, M., Merks, E.: EMF: Eclipse Modeling Framework, 2nd edn. Addison-Wesley, Upper Saddle River (2008)Google Scholar
  21. 21.
    Varró, D., Balogh, A.: The model transformation language of the VIATRA2 framework. Sci. Comput. Program. 68(3), 187–207 (2007)MathSciNetCrossRefGoogle Scholar

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  1. 1.Institute of Mathematics and Computer ScienceUniversity of LatviaRigaLatvia

Personalised recommendations