🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles
advanced

Real-time Fraud Detection with CEP

#stream-processing #fintech #algorithms #real-time

Implement complex event processing logic for financial fraud.

Design a Complex Event Processing (CEP) query to detect potential credit card fraud in a real-time transaction stream. The logic should flag an account if: 1) Three transactions occur in different countries within 10 minutes, OR 2) A single transaction exceeds the user's average historical transaction amount by 5 standard deviations and occurs between 2 AM and 4 AM local time. Define the input event schema and the stateful windowing logic required to maintain historical aggregates efficiently.