Event-Driven Full-Stack Applications with Kafka and WebSockets

Authors

  • kiran Kumar Pappula Independent Researcher, USA. Author
  • Sunil Anasuri Independent Researcher, USA. Author

DOI:

https://doi.org/10.63282/3117-5481/AIJCST-V7I1P104

Keywords:

Blockchain, Multi-Party Machine Learning (Mpml), Cloud-Edge Collaboration, Federated Learning, Secure Multi-Party Computation (Smpc), Data Privacy, Model Integrity

Abstract

The swift cloud and edge computing development promoted the implementation of distributed learning models as different organizations can train them cooperatively and share sensitive data without the need to access it. There is however a serious challenge of making sure that the data privacy, model integrity and secure collaboration is ensured. The paper introduces a blockchain-enhanced framework to conduct computations based on secure multi-party machine learning (MPML) over cloud-edge collaborative settings. The framework proposed uses blockchain technology to build a sense of trust, immutability and verifiability during data sharing as well as training the model. The framework also includes the principles of secure multi-party computation (SMPC) and federation of learning, designed to maintain the privacy of data, but to make models optimize the performance on a heterogeneous set of nodes. We also give a step by step methodology of the system architecture, consensus protocols, encryption mechanisms, and collaborative learning algorithms. Experimental testing illustrates the effectiveness of the framework in regard to security, scale, and the accuracy of the model. Indeed, our findings reveal that blockchain coupled with MPML will help to solve security threats, accountability, and trust among cooperating entities substantially. The framework offers the solid solution to the real-world cloud-edge collaborative applications, such as healthcare, finance, and smart cities

References

[1] Kreps, J., Narkhede, N., & Rao, J. (2011, June). Kafka: A distributed messaging system for log processing. In Proceedings of the NetDB (Vol. 11, No. 2011, pp. 1-7).

[2] Microservices, H. S. E. D., & Rocha, H. F. O. Practical Event-Driven Microservices Architecture.

[3] Milicevic, A., Jackson, D., Gligoric, M., & Marinov, D. (2013, October). Model-based, event-driven programming paradigm for interactive web applications. In Proceedings of the 2013 ACM international symposium on New ideas, new paradigms, and reflections on programming & software (pp. 17-36).

[4] Bellemare, A. (2020). Building event-driven microservices. O'Reilly Media.

[5] Event-Driven Architecture and Kafka Explained: Pros and Cons, Prodyna, Online. https://www.prodyna.com/insights/event-driven-architecture-and-kafka

[6] Stopford, B. (2018). Designing event-driven systems. O'Reilly Media, Incorporated.

[7] Klusman, M., Plasmeijer, R., & Wolter, R. (2016). Event-Driven Architecture in software development projects. Nijmegen. MA thesis. Radboud University, 11-42.

[8] Taylor, H. (2009). Event-driven architecture: how SOA enables the real-time enterprise. Pearson Education India.

[9] Richardson, L., Amundsen, M., & Ruby, S. (2013). RESTful web APIs: services for a changing world. " O'Reilly Media, Inc.".

[10] Michelson, B. M. (2006). Event-driven architecture overview. Patricia Seybold Group, 2(12), 10-1571.

[11] Kafka + WebSockets + Angular: event-driven microservices to the front-end, DevAction, 2019. online. https://www.devaction.net/2019/11/kafka-websockets-angular.html

[12] Chandy, K. M. (2016). Event-driven architecture. In Encyclopedia of Database Systems (pp. 1-5). Springer, New York, NY.

[13] Cristea, V., Pop, F., Dobre, C., & Costan, A. (2011). Distributed architectures for event-based systems. In Reasoning in event-based distributed systems (pp. 11-45). Berlin, Heidelberg: Springer Berlin Heidelberg.

[14] Schmidt, M., & Obermaisser, R. (2018). Adaptive and technology-independent architecture for fault-tolerant distributed AAL solutions. Computers in biology and medicine, 95, 236-247.

[15] Real-Time Event-Driven Architecture with Kafka, WebSockets, and React, Medium, Online. https://medium.com/@akshat.available/real-time-event-driven-architecture-with-kafka-websockets-and-react-b4698361e68a

[16] Liu, C. H., Kung, D. C., & Hsia, P. (2000, October). Object-based data flow testing of web applications. In Proceedings First Asia-Pacific Conference on Quality Software (pp. 7-16). IEEE.

[17] Raj, P., Vanga, S., & Chaudhary, A. (2022). Cloud-Native Computing: How to design, develop, and secure microservices and event-driven applications. John Wiley & Sons.

[18] Bobur Umurzokov, Modern stack to build a real-time event-driven app, iambobur, 2023. online. https://www.iambobur.com/post/modern-stack-to-build-a-real-time-event-driven-app

[19] Rahmatulloh, A., Nugraha, F., Gunawan, R., & Darmawan, I. (2022, November). Event-driven architecture to improve performance and scalability in microservices-based systems. In the 2022 International Conference on Advancement in Data Science, E-learning and Information Systems (ICADEIS) (pp. 01-06). IEEE.

[20] Almasi, A., & Kuma, Y. (2015). Evaluation of WebSocket Communication in Enterprise Architecture.

[21] Rahul, N. (2020). Optimizing Claims Reserves and Payments with AI: Predictive Models for Financial Accuracy. International Journal of Emerging Trends in Computer Science and Information Technology, 1(3), 46-55. https://doi.org/10.63282/3050-9246.IJETCSIT-V1I3P106

[22] Enjam, G. R. (2020). Ransomware Resilience and Recovery Planning for Insurance Infrastructure. International Journal of AI, BigData, Computational and Management Studies, 1(4), 29-37. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V1I4P104

[23] Pedda Muntala, P. S. R. (2021). Integrating AI with Oracle Fusion ERP for Autonomous Financial Close. International Journal of AI, BigData, Computational and Management Studies, 2(2), 76-86. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V2I2P109

[24] Rahul, N. (2021). Strengthening Fraud Prevention with AI in P&C Insurance: Enhancing Cyber Resilience. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 2(1), 43-53. https://doi.org/10.63282/3050-9262.IJAIDSML-V2I1P106

[25] Enjam, G. R., Chandragowda, S. C., & Tekale, K. M. (2021). Loss Ratio Optimization using Data-Driven Portfolio Segmentation. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 2(1), 54-62. https://doi.org/10.63282/3050-9262.IJAIDSML-V2I1P107

[26] Rusum, G. P. (2022). Security-as-Code: Embedding Policy-Driven Security in CI/CD Workflows. International Journal of AI, BigData, Computational and Management Studies, 3(2), 81-88. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V3I2P108

[27] Jangam, S. K. (2022). Role of AI and ML in Enhancing Self-Healing Capabilities, Including Predictive Analysis and Automated Recovery. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 3(4), 47-56. https://doi.org/10.63282/3050-9262.IJAIDSML-V3I4P106

[28] Anasuri, S., Rusum, G. P., & Pappula, kiran K. (2022). Blockchain-Based Identity Management in Decentralized Applications. International Journal of AI, BigData, Computational and Management Studies, 3(3), 70-81. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V3I3P109

[29] Pedda Muntala, P. S. R. (2022). Natural Language Querying in Oracle Fusion Analytics: A Step toward Conversational BI. International Journal of Emerging Trends in Computer Science and Information Technology, 3(3), 81-89. https://doi.org/10.63282/3050-9246.IJETCSIT-V3I3P109

[30] Rahul, N. (2022). Enhancing Claims Processing with AI: Boosting Operational Efficiency in P&C Insurance. International Journal of Emerging Trends in Computer Science and Information Technology, 3(4), 77-86. https://doi.org/10.63282/3050-9246.IJETCSIT-V3I4P108

[31] Enjam, G. R., & Tekale, K. M. (2022). Predictive Analytics for Claims Lifecycle Optimization in Cloud-Native Platforms. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 3(1), 95-104. https://doi.org/10.63282/3050-9262.IJAIDSML-V3I1P110

[32] Karri, N. (2022). Predictive Maintenance for Database Systems. International Journal of Emerging Research in Engineering and Technology, 3(1), 105-115. https://doi.org/10.63282/3050-922X.IJERET-V3I1P111

[33] Tekale, K. M. (2022). Claims Optimization in a High-Inflation Environment Provide Frameworks for Leveraging Automation and Predictive Analytics to Reduce Claims Leakage and Accelerate Settlements. International Journal of Emerging Research in Engineering and Technology, 3(2), 110-122. https://doi.org/10.63282/3050-922X.IJERET-V3I2P112

[34] Rusum, G. P. (2023). Secure Software Supply Chains: Managing Dependencies in an AI-Augmented Dev World. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 4(3), 85-97. https://doi.org/10.63282/3050-9262.IJAIDSML-V4I3P110

[35] Jangam, S. K., & Karri, N. (2023). Robust Error Handling, Logging, and Monitoring Mechanisms to Effectively Detect and Troubleshoot Integration Issues in MuleSoft and Salesforce Integrations. International Journal of Emerging Research in Engineering and Technology, 4(4), 80-89. https://doi.org/10.63282/3050-922X.IJERET-V4I4P108

[36] Anasuri, S. (2023). Synthetic Identity Detection Using Graph Neural Networks. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 4(4), 87-96. https://doi.org/10.63282/3050-9262.IJAIDSML-V4I4P110

[37] Pedda Muntala, P. S. R. (2023). AI-Powered Chatbots and Digital Assistants in Oracle Fusion Applications. International Journal of Emerging Trends in Computer Science and Information Technology, 4(3), 101-111. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I3P111

[38] Rahul, N. (2023). Personalizing Policies with AI: Improving Customer Experience and Risk Assessment. International Journal of Emerging Trends in Computer Science and Information Technology, 4(1), 85-94. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I1P110

[39] Enjam, G. R. (2023). Optimizing PostgreSQL for High-Volume Insurance Transactions & Secure Backup and Restore Strategies for Databases. International Journal of Emerging Trends in Computer Science and Information Technology, 4(1), 104-111. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I1P112

[40] Tekale, K. M. (2023). Cyber Insurance Evolution: Addressing Ransomware and Supply Chain Risks. International Journal of Emerging Trends in Computer Science and Information Technology, 4(3), 124-133. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I3P113

[41] Karri, N., & Jangam, S. K. (2023). Role of AI in Database Security. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 4(1), 89-97. https://doi.org/10.63282/3050-9262.IJAIDSML-V4I1P110

[42] Rusum, G. P. (2024). Trustworthy AI in Software Systems: From Explainability to Regulatory Compliance. International Journal of Emerging Research in Engineering and Technology, 5(1), 71-81. https://doi.org/10.63282/3050-922X.IJERET-V5I1P109

[43] Enjam, G. R., & Tekale, K. M. (2024). Self-Healing Microservices for Insurance Platforms: A Fault-Tolerant Architecture Using AWS and PostgreSQL. International Journal of AI, BigData, Computational and Management Studies, 5(1), 127-136. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I1P113

[44] Rahul, N. (2024). Revolutionizing Medical Bill Reviews with AI: Enhancing Claims Processing Accuracy and Efficiency. International Journal of AI, BigData, Computational and Management Studies, 5(2), 128-140. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I2P113

[45] Partha Sarathi Reddy Pedda Muntala, "AI-Powered Expense and Procurement Automation in Oracle Fusion Cloud" International Journal of Multidisciplinary on Science and Management, Vol. 1, No. 3, pp. 62-75, 2024.

[46] Jangam, S. K. (2024). Advancements and Challenges in Using AI and ML to Improve API Testing Efficiency, Coverage, and Effectiveness. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(2), 95-106. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I2P111

[47] Anasuri, S. (2024). Secure Software Development Life Cycle (SSDLC) for AI-Based Applications. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(1), 104-116. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I1P110

[48] Karri, N., & Jangam, S. K. (2024). Semantic Search with AI Vector Search. International Journal of AI, BigData, Computational and Management Studies, 5(2), 141-150. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I2P114

[49] Tekale, K. M., & Rahul, N. (2024). AI Bias Mitigation in Insurance Pricing and Claims Decisions. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(1), 138-148. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I1P113

[50] Rahul, N. (2020). Vehicle and Property Loss Assessment with AI: Automating Damage Estimations in Claims. International Journal of Emerging Research in Engineering and Technology, 1(4), 38-46. https://doi.org/10.63282/3050-922X.IJERET-V1I4P105

[51] Enjam, G. R., & Tekale, K. M. (2020). Transitioning from Monolith to Microservices in Policy Administration. International Journal of Emerging Research in Engineering and Technology, 1(3), 45-52. https://doi.org/10.63282/3050-922X.IJERETV1I3P106

[52] Pedda Muntala, P. S. R., & Jangam, S. K. (2021). End-to-End Hyperautomation with Oracle ERP and Oracle Integration Cloud. International Journal of Emerging Research in Engineering and Technology, 2(4), 59-67. https://doi.org/10.63282/3050-922X.IJERET-V2I4P107

[53] Rahul, N. (2021). AI-Enhanced API Integrations: Advancing Guidewire Ecosystems with Real-Time Data. International Journal of Emerging Research in Engineering and Technology, 2(1), 57-66. https://doi.org/10.63282/3050-922X.IJERET-V2I1P107

[54] Karri, N. (2021). AI-Powered Query Optimization. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 2(1), 63-71. https://doi.org/10.63282/3050-9262.IJAIDSML-V2I1P108

[55] Rusum, G. P., & Pappula, kiran K. . (2022). Event-Driven Architecture Patterns for Real-Time, Reactive Systems. International Journal of Emerging Research in Engineering and Technology, 3(3), 108-116. https://doi.org/10.63282/3050-922X.IJERET-V3I3P111

[56] Jangam, S. K., & Karri, N. (2022). Potential of AI and ML to Enhance Error Detection, Prediction, and Automated Remediation in Batch Processing. International Journal of AI, BigData, Computational and Management Studies, 3(4), 70-81. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V3I4P108

[57] Anasuri, S. (2022). Formal Verification of Autonomous System Software. International Journal of Emerging Research in Engineering and Technology, 3(1), 95-104. https://doi.org/10.63282/3050-922X.IJERET-V3I1P110

[58] Pedda Muntala, P. S. R., & Jangam, S. K. (2022). Predictive Analytics in Oracle Fusion Cloud ERP: Leveraging Historical Data for Business Forecasting. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 3(4), 86-95. https://doi.org/10.63282/3050-9262.IJAIDSML-V3I4P110

[59] Rahul, N. (2022). Optimizing Rating Engines through AI and Machine Learning: Revolutionizing Pricing Precision. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 3(3), 93-101. https://doi.org/10.63282/3050-9262.IJAIDSML-V3I3P110

[60] Enjam, G. R. (2022). Secure Data Masking Strategies for Cloud-Native Insurance Systems. International Journal of Emerging Trends in Computer Science and Information Technology, 3(2), 87-94. https://doi.org/10.63282/3050-9246.IJETCSIT-V3I2P109

[61] Karri, N., Pedda Muntala, P. S. R., & Jangam, S. K. (2022). Forecasting Hardware Failures or Resource Bottlenecks Before They Occur. International Journal of Emerging Research in Engineering and Technology, 3(2), 99-109. https://doi.org/10.63282/3050-922X.IJERET-V3I2P111

[62] Tekale, K. M. T., & Enjam, G. reddy . (2022). The Evolving Landscape of Cyber Risk Coverage in P&C Policies. International Journal of Emerging Trends in Computer Science and Information Technology, 3(3), 117-126. https://doi.org/10.63282/3050-9246.IJETCSIT-V3I1P113

[63] Rusum, G. P., & Anasuri, S. (2023). Synthetic Test Data Generation Using Generative Models. International Journal of Emerging Trends in Computer Science and Information Technology, 4(4), 96-108. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I4P111

[64] Jangam, S. K. (2023). Data Architecture Models for Enterprise Applications and Their Implications for Data Integration and Analytics. International Journal of Emerging Trends in Computer Science and Information Technology, 4(3), 91-100. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I3P110

[65] Anasuri, S., Rusum, G. P., & Pappula, K. K. (2023). AI-Driven Software Design Patterns: Automation in System Architecture. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 4(1), 78-88. https://doi.org/10.63282/3050-9262.IJAIDSML-V4I1P109

[66] Pedda Muntala, P. S. R., & Karri, N. (2023). Managing Machine Learning Lifecycle in Oracle Cloud Infrastructure for ERP-Related Use Cases. International Journal of Emerging Research in Engineering and Technology, 4(3), 87-97. https://doi.org/10.63282/3050-922X.IJERET-V4I3P110

[67] Enjam, G. R., Tekale, K. M., & Chandragowda, S. C. (2023). Zero-Downtime CI/CD Production Deployments for Insurance SaaS Using Blue/Green Deployments. International Journal of Emerging Research in Engineering and Technology, 4(3), 98-106. https://doi.org/10.63282/3050-922X.IJERET-V4I3P111

[68] Tekale , K. M. (2023). AI-Powered Claims Processing: Reducing Cycle Times and Improving Accuracy. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 4(2), 113-123. https://doi.org/10.63282/3050-9262.IJAIDSML-V4I2P113

[69] Karri, N., & Pedda Muntala, P. S. R. (2023). Query Optimization Using Machine Learning. International Journal of Emerging Trends in Computer Science and Information Technology, 4(4), 109-117. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I4P112

[70] Rusum, G. P., & Anasuri, S. (2024). Vector Databases in Modern Applications: Real-Time Search, Recommendations, and Retrieval-Augmented Generation (RAG). International Journal of AI, BigData, Computational and Management Studies, 5(4), 124-136. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I4P113

[71] Enjam, G. R. (2024). AI-Powered API Gateways for Adaptive Rate Limiting and Threat Detection. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(4), 117-129. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I4P112

[72] Rahul, N. (2024). Improving Policy Integrity with AI: Detecting Fraud in Policy Issuance and Claims. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(1), 117-129. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I1P111

[73] Reddy Pedda Muntala, P. S., & Jangam, S. K. (2024). Automated Risk Scoring in Oracle Fusion ERP Using Machine Learning. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(4), 105-116. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I4P111

[74] Jangam, S. K. (2024). Scalability and Performance Limitations of Low-Code and No-Code Platforms for Large-Scale Enterprise Applications and Solutions. International Journal of Emerging Trends in Computer Science and Information Technology, 5(3), 68-78. https://doi.org/10.63282/3050-9246.IJETCSIT-V5I3P107

[75] Anasuri, S., & Rusum, G. P. (2024). Software Supply Chain Security: Policy, Tooling, and Real-World Incidents. International Journal of Emerging Trends in Computer Science and Information Technology, 5(3), 79-89. https://doi.org/10.63282/3050-9246.IJETCSIT-V5I3P108

[76] Karri, N., & Pedda Muntala, P. S. R. (2024). Using Oracle’s AI Vector Search to Enable Concept-Based Querying across Structured and Unstructured Data. International Journal of AI, BigData, Computational and Management Studies, 5(3), 145-154. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I3P115

[77] Tekale, K. M. (2024). Generative AI in P&C: Transforming Claims and Customer Service. International Journal of Emerging Trends in Computer Science and Information Technology, 5(2), 122-131. https://doi.org/10.63282/3050-9246.IJETCSIT-V5I2P113

Downloads

Published

2025-01-12

Issue

Section

Articles

How to Cite

[1]
kiran K. Pappula and S. Anasuri, “Event-Driven Full-Stack Applications with Kafka and WebSockets”, AIJCST, vol. 7, no. 1, pp. 42–54, Jan. 2025, doi: 10.63282/3117-5481/AIJCST-V7I1P104.

Most read articles by the same author(s)

Similar Articles

1-10 of 101

You may also start an advanced similarity search for this article.