Leveraging Cloud-Native Microservices Architecture for High Performance Real-Time Intra-Day Trading: A Tutorial

  • Chapter
  • First Online:
6G Enabled Fog Computing in IoT

Abstract

Day trading has been gaining attention from prospective investors over the past decades, even more so in the last decade due to a plethora of factors such as instantaneous availability and accessibility to information such as social media, news, Internet of Things (IoT), availability of market’s sentiment data associated with them, and increased broker discounts. This tutorial aims at providing a framework for intra-day trading that supports scalability, easily maintainable by creating a low coupling, high cohesion, and stateless architecture between client and server, considering the time-sensitive nature of transactions involved. This provides the benefits of additional business value for Software as a Service (SaaS) providers based on high productivity as well as enhanced end-user experience. To achieve these objectives, a combination of cloud-native architectural components, such as microservices and event streaming using Kafka, is used in this tutorial to provide a near real-time experience to end users. Additionally, to ensure security, robust authentication management is used in the proposed solution to control the access of read and write operations on the Firebase cloud database.

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

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.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
EUR 29.95
Price includes VAT (Germany)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 128.39
Price includes VAT (Germany)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
EUR 171.19
Price includes VAT (Germany)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free ship** 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. Chung, J., Choe, H., & Kho, B.-C. (2008). The impact of day-trading on volatility and liquidity. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.1855759

  2. Stopford, B., & Newman, S. (2018). Concepts and patterns for streaming services with Apache Kafka designing event-driven systems. [online] Available at: https://sd.blackball.lv/library/Designing_Event-Driven_Systems_(2018).pdf

  3. Salah, T., Jamal Zemerly, M., Yeun, C. Y., Al-Qutayri, M., & Al-Hammadi, Y. (2016). The evolution of distributed systems towards microservices architecture. In 11th international conference for internet technology and secured transactions (ICITST) (pp. 318–325).

    Google Scholar 

  4. Shah, S. D. A., Gregory, M. A., & Li, S. (2021). Cloud-native network slicing using software defined networking based multi-access edge computing: A survey. IEEE Access, 9, 10903–10924.

    Article  Google Scholar 

  5. Ammi, M., Adedugbe, O., Alharby, F. M., & Benkhelifa, E. (2022). Leveraging a cloud-native architecture to enable semantic interconnectedness of data for cyber threat intelligence. Cluster Computing, 25, 3629–3640.

    Article  Google Scholar 

  6. Valdez, M. G., & Guervós, J. J. M. (2021). A container-based cloud-native architecture for the reproducible execution of multi-population optimization algorithms. Future Generation Computer Systems, 116, 234–252.

    Article  Google Scholar 

  7. Saxena, H., & Pound, J. (2020). A cloud-native architecture for replicated data services. In 12th USENIX Workshop on Hot Topics in Cloud Computing (HotCloud 20).

    Google Scholar 

  8. Fernando, J. (2019). Relative Strength Index – RSI. [online] Investopedia. Available at: https://www.investopedia.com/terms/r/rsi.asp

  9. Hayes, A. (n.d.). Stochastic oscillator. [online] Investopedia. Available at: https://www.investopedia.com/terms/s/stochasticoscillator.asp

  10. Hayes, A. (n.d.). On-Balance Volume (OBV). [online] Investopedia. Available at: https://www.investopedia.com/terms/o/onbalancevolume.asp

  11. Investopedia. (n.d.). Exponential Moving Average - EMA. [online] Available at: https://www.investopedia.com/terms/e/ema.asp

  12. Mitchell, C. (n.d.). Triple Exponential Moving Average (TEMA) definition. [online] Investopedia. Available at: https://www.investopedia.com/terms/t/triple-exponential-moving-average.asp

  13. Xu, M., Song, C., Ilager, S., Gill, S. S., Zhao, J., Ye, K., & Xu, C. (2022). CoScal: Multi-faceted scaling of microservices with reinforcement learning. IEEE Transactions on Network and Service Management, 19, 3995–4009.

    Article  Google Scholar 

  14. Balalaie, A., Heydarnoori, A., & Jamshidi, P. (2016). Migrating to cloud-native architectures using microservices: An experience report. In A. Celesti & P. Leitner (Eds.), Advances in service-oriented and cloud computing. ESOCC 2015. Communications in computer and information science (Vol. 567). Cham: Springer. https://doi.org/10.1007/978-3-319-33313-7_15

    Google Scholar 

  15. Long-Polling vs WebSockets vs Server-Sent Events, Online Link https://systemdesignbasic.wordpress.com/2020/02/01/12-long-polling-vs-websockets-vs-server-sent-events/

  16. Iftikhar, S., Gill, S. S., Song, C., Xu, M., Aslanpour, M. S., Toosi, A. N., et al. (2022). AI-based fog and edge computing: A systematic review, taxonomy and future directions. Internet of Things, 21, 100674.

    Article  Google Scholar 

  17. Gill, S. S., Xu, M., Ottaviani, C., Patros, P., Bahsoon, R., Shaghaghi, A., et al. (2022). AI for next generation computing: Emerging trends and future directions. Internet of Things, 19, 100514.

    Article  Google Scholar 

  18. Gajjala, R. R., Banchhor, S., Abdelmoniem, A. M., Dutta, A., Canini, M., & Kalnis, P. (2020). Huffman coding based encoding techniques for fast distributed deep learning. In Proceedings of the 1st Workshop on Distributed Machine Learning.

    Google Scholar 

  19. Abdelmoniem, A. M., & Canini, M. (2021). DC2: Delay-aware compression control for distributed machine learning. In IEEE Conference on Computer Communications (INFOCOM).

    Google Scholar 

  20. Abdelmoniem, A. M., & Bensaou, B. (2017). Enforcing transport-agnostic congestion control in SDN-based data centers. In IEEE 42nd Conference on Local Computer Networks (LCN).

    Google Scholar 

  21. Kuepper, J. (n.d.). An introduction to day trading. [online] Investopedia. Available at: https://www.investopedia.com/articles/trading/05/011705.asp

  22. Mitchell, C. (n.d.). Commodity Channel Index - CCI definition and uses. [online] Investopedia. Available at: https://www.investopedia.com/terms/c/commoditychannelindex.asp

  23. Hayes, A. (n.d.). Simple Moving Average - SMA. [online] Investopedia. Available at: https://www.investopedia.com/terms/s/sma.asp

  24. Lee, C., & Paik, I. (2017). Stock market analysis from twitter and news based on streaming big data infrastructure. In IEEE 8th international conference on awareness science and technology (pp. 312–317).

    Google Scholar 

Download references

Acknowledgements

This work is partially funded by Chinese Academy of Sciences President’s International Fellowship Initiative (Grant No. 2023VTC0006), National Natural Science Foundation of China (No. 62102408), Shenzhen Science and Technology Program (Grant No. RCBS20210609104609044), and Shenzhen Industrial Application Projects of undertaking the National key R & D Program of China (No. CJGJZD20210408091600002). We also declare that this work has been submitted as an MSc project dissertation in partial fulfilment of the requirements for the award of degree of Master of Science submitted in School of Electronic Engineering and Computer Science of Queen Mary University of London, UK is an authentic record of research work carried out by Mousumi Hota (first author) under the supervision of Sukhpal Singh Gill (last author) and refers other researcher’s work which are duly listed in the reference section. This MSc project dissertation has been checked using Turnitin at Queen Mary University of London, UK and submitted dissertation has been stored in repository for university record.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sukhpal Singh Gill .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Hota, M., Abdelmoniem, A.M., Xu, M., Gill, S.S. (2023). Leveraging Cloud-Native Microservices Architecture for High Performance Real-Time Intra-Day Trading: A Tutorial. In: Kumar, M., Gill, S.S., Samriya, J.K., Uhlig, S. (eds) 6G Enabled Fog Computing in IoT. Springer, Cham. https://doi.org/10.1007/978-3-031-30101-8_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-30101-8_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-30100-1

  • Online ISBN: 978-3-031-30101-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics

Navigation