Skip to main content

Comparative Analysis of Using Event Sourcing Approach in Web Application Based on the LAMP Stack

  • Conference paper
  • First Online:
Mobile Computing and Sustainable Informatics

Abstract

The article deals with the different solution implementations for the problems that require the usage of event sourcing design pattern. The problem of event sourcing in web applications (particularly, those that run using LAMP (Linux, Apache, MySQL, PHP) stack) is discussed and the related works are reviewed. The experiments with performance testing of each event sourcing approach for web app are described and conducted: creation with and without snapshots, using separate queries and transactions; reading the data from the snapshot and data array, as well as calculation of the balance using a database management system, back-end, and front-end. The experiment results are presented and discussed, and the conclusions are drawn based on the results. Results can be useful for web developers who design LAMP stack applications.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 219.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 279.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

Similar content being viewed by others

References

  1. Martin RC (2017) IClean architecture: a craftsman’s guide to software structure and design. Prentice Hall, Boston, MA

    Google Scholar 

  2. Kabbedijk J, Jansen S, Brinkkemper S (2012) A case study of the variability consequences of the CQRS pattern in online business software. In: Proceedings of the 17th European conference on pattern languages of programs (EuroPLoP '12). Association for Computing Machinery, New York, NY, USA, Article 2, pp 1–10

    Google Scholar 

  3. Zhong Y, Li W, Wang J (2019) Using event sourcing and CQRS to build a high performance point trading system. In: Proceedings of the 2019 5th international conference on E-Business and applications (ICEBA 2019). Association for Computing Machinery, New York, NY, USA, pp 16–19

    Google Scholar 

  4. Vasconcellos PRG, Bezerra VM, Bianchini CP (2018) Applying event sourcing in a ERP system: a case study. In: 2018 XLIV Latin American computer conference (CLEI), pp 80–89

    Google Scholar 

  5. Bogner J, Fritzsch J, Wagner S, Zimmermann A (2019) Microservices in industry: insights into technologies, characteristics, and software quality. In: 2019 IEEE international conference on software architecture companion (ICSA-C)

    Google Scholar 

  6. Baldini I et al (2017) Serverless computing: current trends and open problems. In: Chaudhary S, Somani G, Buyya R (eds) Research advances in cloud computing. Springer, Singapore

    Google Scholar 

  7. Rybicki J (2018) Application of event sourcing in research data management. In: 2018 ALLDATA 2018, the fourth international conference on Big Data, small data, linked data and open data, pp 46–52

    Google Scholar 

  8. Overeem M, Spoor M, Jansen S (2017) The dark side of event sourcing: managing data conversion. In: 2017 IEEE 24th international conference on software analysis, evolution and reengineering (SANER), pp 193–204

    Google Scholar 

  9. Kyriakakis P, Chatzigeorgiou A, Xinogalos S, Ampatzoglou A (2019) Exploring the frequency and change proneness of dynamic feature pattern instances in PHP applications. Sci Comput Program 171

    Google Scholar 

  10. Laaziri M, Benmoussa K, Khoulji S (2019) Mohamed Larbi Kerkeb: a Comparative study of PHP frameworks performance. Procedia Manuf 32:864–871

    Article  Google Scholar 

  11. Dhuny R, Peer AAI, Mohamudally NA, Nissanke N (2022) Performance evaluation of a portable single-board computer as a 3-tiered LAMP stack under 32-bit and 64-bit operating systems. Softw Impacts 14:100390

    Google Scholar 

  12. PHP and Event Sourcing. https://www.eventstore.com/blog/php-and-event-sourcing

  13. Adding Event Sourcing to an existing PHP project (for the right reasons). https://symfonycasts.com/screencast/symfonycon2019/adding-event-sourcing-to-an-existing-php-project-for-the-right-reasons

  14. CQRS and Event Sourcing implementation in PHP. https://tsh.io/blog/cqrs-event-sourcing-php/

  15. Starting with Event Sourcing in PHP. https://medium.com/nerd-for-tech/starting-with-event-sourcing-in-php-161a83597d69

Download references

Acknowledgements

Authors want to thank the Armed Forces of Ukraine and all the defenders of Ukraine that give us the possibility to proceed scientific and engineering work in time of war.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marian Slabinoha .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Slabinoha, M., Melnychuk, S., Kropyvnytska, V., Pashkovskyi, B. (2023). Comparative Analysis of Using Event Sourcing Approach in Web Application Based on the LAMP Stack. In: Shakya, S., Papakostas, G., Kamel, K.A. (eds) Mobile Computing and Sustainable Informatics. Lecture Notes on Data Engineering and Communications Technologies, vol 166. Springer, Singapore. https://doi.org/10.1007/978-981-99-0835-6_19

Download citation

Publish with us

Policies and ethics