Implementation of Event-Driven Architecture using NATS JetStream for a Large-Scale Online Exam Answer Collection System

Authors

  • Dery Ciputra Ma’soem STMIK Indonesia Mandiri
  • Novi Rukhviyanti STMIK Indonesia Mandiri

DOI:

https://doi.org/10.59261/jbt.v7i2.654

Keywords:

asynchronous computing, event-driven architecture, load testing, nats jetstream, online exam

Abstract

Background: Online examination systems—even at the prototype and institutional levels—face serious performance challenges under synchronized spike conditions. This study, conducted on a prototype (Chilaedu) with 300 synthetic users, demonstrates that conventional synchronous (request-response) architecture has thread-capacity limitations that trigger gateway timeout failures, thereby undermining overall assessment system reliability.

Objective: This research designs and evaluates the architectural transition toward an asynchronous Event-Driven Architecture (EDA) approach using the Go runtime and the NATS JetStream message broker on the Chilaedu e-learning platform prototype.

Methods: System performance was evaluated using a load-testing scenario based on a custom testing tool developed with Go and Python to simulate synchronized spike conditions at concurrency levels of 10, 25, 50, and 100, with 300 synthetic user entities per scenario, in a single-server isolated prototype environment.

Results: The test results show that the asynchronous architecture successfully maintained a throughput of 2,209 requests per second with an HTTP error rate of 0.00%. The system operated efficiently with an average memory consumption of 70 MB and a peak CPU utilization of 18.03%. Latency at the 99th percentile (p99) was recorded at 79.02 ms, which is below the feasibility threshold of 100 ms, thereby preventing user interface freezes (browser freezes). A comparison with the synchronous monolithic approach documented in previous research shows a significant increase in load-handling capacity.

Conclusion: The NATS JetStream-based EDA architecture proves effective as a solution for improving the reliability and efficiency of large-scale online exam answer collection infrastructure.

References

Abdelsalam, M., Shokry, M., & Idrees, A. M. (2023). A proposed model for improving the reliability of online exam results using blockchain. IEEE Access, 12, 7719–7733. https://doi.org/10.1109/ACCESS.2023.3304995

Arief, S. N., Prasetyo, A., Mashudi, I. A., & Nugraha, B. S. D. (2024). Analisa Performansi Ujian Online Berbasis Website Dengan Arsitektur Lightweight Kubernetes (K3S). Jurnal Minfo Polgan, 13(2), 1739–1745. https://doi.org/10.33395/jmp.v13i2.14240

Asro, A., Monica, M., Rukhviyanti, N., & Yusron, M. (2024). Analisis Literatur Review Perencanaan Strategi Sistem Informasi Menggunakan Metode Pieces Framework. KRESNA: Jurnal Riset Dan Pengabdian Masyarakat, 4(2), 161–169. https://doi.org/10.36080/kresna.v4i2.182

Blinowski, G., Ojdowska, A., & Przybyłek, A. (2022). Monolithic vs. microservice architecture: A performance and scalability evaluation. IEEE Access, 10, 20357–20374. https://doi.org/10.1109/ACCESS.2022.3152803

Cabane, H., & Farias, K. (2024). On the impact of event-driven architecture on performance: An exploratory study. Future Generation Computer Systems, 153, 52–69. https://doi.org/10.1016/j.future.2023.10.021

Cox-Buday, K. (2017). Concurrency in Go: Tools and Techniques for Developers. “ O’Reilly Media, Inc.”

Elumalai, K. V., Sankar, J. P., Kalaichelvi, R., John, J. A., Menon, N., Alqahtani, M. S. M., & Abumelha, M. A. (2021). Factors affecting the quality of e-learning during the COVID-19 pandemic from the perspective of higher education students. COVID-19 and Education: Learning and Teaching in a Pandemic-Constrained Environment, 189(3), 169.

Goel, R. (2024). Evaluating Message Brokers: Performance, Scalability, and Suitability for Distributed Applications. American Journal of Computer Architecture, 11(5), 62–65. https://doi.org/10.5923/j.ajca.20241105.02

Hasbi, H., Rukhvianti, N., & Gunawan, H. (2020). Pembinaan Motivasi Belajar Siswa Menggunakan Metode ARCS. E-Dimas: Jurnal Pengabdian Kepada Masyarakat, 11(3), 254–259. https://doi.org/10.26877/e-dimas.v11i3.5653

Henning, S., & Hasselbring, W. (2024). Benchmarking scalability of stream processing frameworks deployed as microservices in the cloud. Journal of Systems and Software, 208, 111879. https://doi.org/10.1016/j.jss.2023.111879

Kleppmann, M. (2017). Designing data-intensive applications: The big ideas behind reliable, scalable, and maintainable systems. “ O’Reilly Media, Inc.”

Lai, C. F., & Huynh, P. V. (2022). Air Traffic Management TestBed: Messaging Performance. NASA.

Njuguna, A. M. (2022). User experience of online examinations and proctoring: A case based study. International Journal of Current Science Research and Review, 5(7), 2326–2335.

Oliveira Rocha, H. F. (2021). Choosing the Correct Event Schema Design in Event-Driven Microservices. In Practical Event-Driven Microservices Architecture: Building Sustainable and Highly Scalable Event-Driven Microservices (pp. 323–355). Springer. https://doi.org/10.1007/978-1-4842-7468-2_8

Oktaviane, S. P., & Rukhviyanti, N. (2026). The Role of Information Systems in Managing Student Report Card and Attendance Data in Junior High Schools. Jurnal Ilmiah Global Education, 7(1), 402-413. https://doi.org/10.55681/jige.v7i1.5211

Paredes, A. J., Vargas Escobar, L. A., Inciarte González, A., & Mercado Porras, C. (2023). Assessment of learning in online academic programs from the digital transformation impelled by Covid-19. Revista de Ciencias Sociales, 29(1), 18–34.

Ramzan, M., Abid, A., Bilal, M., Aamir, K. M., Memon, S. A., & Chung, T.-S. (2024). Effectiveness of pre-trained CNN networks for detecting abnormal activities in online exams. IEEE Access, 12, 21503–21519. https://doi.org/10.1109/ACCESS.2024.3359689

Rukhiran, M., Wong-In, S., & Netinant, P. (2023). IoT-based biometric recognition systems in education for identity verification services: Quality assessment approach. Ieee Access, 11, 22767–22787. https://doi.org/10.1109/ACCESS.2023.3253024

Rukhviyanti, N. (2025). Balanced scorecard: Performance measurement of university mediated by student loyalty. Jurnal Manajemen, 29(2), 400-420. https://doi.org/10.24912/jm.v29i2.2694

Ruhviyanti, N., Wasliman, I., Hanafiah, H., & Tejawiani, I. (2022). Implementation of the balanced scorecard in improving the performance of private universities. International Journal of Educational Research & Social Sciences, 3(3), 1242-1246. https://doi.org/10.51601/ijersc.v3i3.390

Sahni, S., Verma, S., & Kaurav, R. P. S. (2025). Understanding digital transformation challenges for online learning and teaching in higher education institutions: a review and research framework. Benchmarking: An International Journal, 32(5), 1487–1521. https://doi.org/10.1108/BIJ-04-2022-0245

Shard, Kumar, D., & Koul, S. (2024). Digital transformation in higher education: A comprehensive review of e-learning adoption. Human Systems Management, 43(4), 433–454. https://doi.org/10.3233/HSM-230190

Vom Brocke, J., Hevner, A., & Maedche, A. (2020). Design science research. Cases. Springer. https://doi.org/10.1007/978-3-030-46781-4

Downloads

Published

2026-05-30