Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

CippyCabana1109/mpesa-streaming-pipeline

Domain:

digital infrastructure

Record type:

software
Creator:
Cip
Host:
# M-Pesa Streaming Pipeline ## M-Pesa Streaming Pipeline > **Real-time fraud detection pipeline for M-Pesa-like mobile money transactions** > **Kafka → PySpark → Elasticsearch** with ML-powered anomaly detection > **Kenyan fintech focus** with realistic transaction patterns and geographic data --- **Real-World Impact**: - Processes **1,000+ transactions/second** with ** 50km from Nairobi) - ML model identified 89 additional anomalies **Scenario 3: High-Frequency User Detection** - Simulated user with 20 transactions in 5 minutes - Rule-based: Flagged after 5 transactions - ML model: Flagged after 3 transactions (earlier detection) --- ## Architecture Overview ```mermaid graph TB A[Transaction Simulator] -->|JSONL| B[Kafka Producer] B -->|mpesa-transactions| C[Kafka Cluster] C -->|Stream| D[PySpark Processor] D -->|Fraud Rules| E[ML Anomaly Detection] D -->|Aggregates| F[Elasticsearch] F --> G[Kibana Dashboard] H[Spark UI] --> D I[Prometheus] --> D J[Jaeger] --> D style A fill:#e1f5fe style B fill:#f3e5f5 style C fill:#fff3e0 style D fill:#e8f5e8 style E fill:#fce4ec style F fill:#f1f8e9 style G fill:#e0f2f1 ``` **Key Features**: - **Real-time processing**: Kafka + PySpark Streaming - **ML fraud detection**: Isolation Forest with feature engineering - **Kenyan context**: Nairobi coordinates, mobile money patterns - **Visualization**: Kibana dashboards for fraud analytics - **Containerized**: Docker + docker-compose setup - **CI/CD**: GitHub Actions with testing and deployment - **Monitoring**: Prometheus + Jaeger tracing --- ## Project Overview Real-time streaming pipeline for simulated M-Pesa transactions with fraud detection capabilities. This project processes mobile money transactions in real-time, analyzes patterns, and identifies potentially fraudulent activities using machine learning. ## Tech Stack - **Apache Kafka**: Distributed streaming platform for real-time data ingestion - **PySpark Streaming**: Real-time data processing and …

Visit

github.com

Languages

Lusengo

Licenses

MIT

Similar

KylerRook/Real-Time-Transaction-Streaming-MpesaKachielite/mpesa-sms-llm-training-pipelineUnifying Streaming and Non-streaming Zipformer-based ASRmbalinonhlanhla684/sa-loadshedding-streamingPysham0n/Weather-Streaming-SparkFred-In-tech/griot-streaming

KylerRook/Real-Time-Transaction-Streaming-Mpesa

# M-Pesa Real-Time Transaction Streaming Pipeline ## Category: Real-Time Data Engineering / FinTech

Kachielite/mpesa-sms-llm-training-pipeline

# MPESA SMS LLM Training Pipeline A comprehensive end-to-end pipeline for processing MPESA SMS tran

Unifying Streaming and Non-streaming Zipformer-based ASR

There has been increasing interest in unifying streaming and non-streaming automatic speech recognit

mbalinonhlanhla684/sa-loadshedding-streaming

Real-Time South African load-shedding monitor built with Kafka,Node.js,and React # SA Load-Shedding

Pysham0n/Weather-Streaming-Spark

This project is a real-time weather monitoring application that collects weather data from various c

Fred-In-tech/griot-streaming

Vertical short-film streaming MVP for African stories — signed HLS playback, idempotent append-only