A Comparative Study On Real Time Data Streaming For Fraud Detection Using Kafka With Apache Flink And Apache Spark

The Increasing volume and velocity of digital financial transactions have heightened the need for responsive and scalable fraud detection systems. This paper presents a comparative study of two stream processing frameworks. Apache Flink and Apache Spark within a Kafka based real-time fraud detection architecture. Both pipelines were implemented under identical conditions and integrated with a pretrained Random Forest model which was selected based on its superior offline performance among five evaluated machine learning classifiers. Performance benchmarking focused on latency and throughput under two different data ingestion rates, 10 and 40 transactions per second. With evaluation focusing on latency and throughput. Experimental results show that Apache Spark achieved consistently a lower average latency 0.8 seconds at 10 TPS and 0.9 seconds at 40 TPS compared to Apache Flink, which recorded 1.7 and 1.6 seconds respectively. Throughput for both frameworks remained stable underload, demonstrating scalability. These findings provide empirical insights to support informed decision making in selecting stream processing technologies for real-time, missing critical fraud detection use cases.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.08.272
Citations
1
Primary Topic
Data Stream Mining Techniques
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Comparative Study On Real Time Data Streaming For Fraud Detection Using Kafka With Apache Flink And Apache Spark

Ade Putera Kemala, Rayhan Prawira Daksa
1 citations
Procedia Computer Science
Data Stream Mining Techniques
2.48
article

A Comparative Study On Real Time Data Streaming For Fraud Detection Using Kafka With Apache Flink And Apache Spark

Ade Putera Kemala, Rayhan Prawira Daksa
article en
1 citations

Abstract

The Increasing volume and velocity of digital financial transactions have heightened the need for responsive and scalable fraud detection systems. This paper presents a comparative study of two stream processing frameworks. Apache Flink and Apache Spark within a Kafka based real-time fraud detection architecture. Both pipelines were implemented under identical conditions and integrated with a pretrained Random Forest model which was selected based on its superior offline performance among five evaluated machine learning classifiers. Performance benchmarking focused on latency and throughput under two different data ingestion rates, 10 and 40 transactions per second. With evaluation focusing on latency and throughput. Experimental results show that Apache Spark achieved consistently a lower average latency 0.8 seconds at 10 TPS and 0.9 seconds at 40 TPS compared to Apache Flink, which recorded 1.7 and 1.6 seconds respectively. Throughput for both frameworks remained stable underload, demonstrating scalability. These findings provide empirical insights to support informed decision making in selecting stream processing technologies for real-time, missing critical fraud detection use cases.

Procedia Computer ScienceVol. 269
Binus University (ID)
Openalex Percentile: Top 8%
Data Stream Mining Techniques
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Comparative Study On Real Time Data Streaming For Fraud Detection Using Kafka With Apache Flink And Apache Spark — Ade Putera Kemala, Rayhan Prawira Daksa · Procedia Computer Science (2025) | TGRS Research Map | TGRS