<https://github.com/emeryberger/COMPSCI590S/blob/m...
# repolling
Title: Temporal Key-State Stream Processing for Real-Time Anomaly Detection Abstract: This work presents a distributed stream processing framework optimized for real-time data science applications, enabling continuous model-based analytics with persistent per-key state and temporal event ordering. The system introduces a novel low watermark mechanism to handle out-of-order event streams, ensuring deterministic processing windows without requiring strict time monotonicity. It provides exactly-once delivery semantics with fine-grained fault tolerance, enabling reliable stateful aggregations for applications such as search trend anomaly detection, where historical query models are continuously updated and compared against real-time inputs. The framework's design decouples computational logic from distribution concerns, allowing data scientists to implement complex streaming algorithms—including windowed aggregations, time-based triggers, and stateful machine learning updates—without managing underlying consistency or recovery mechanisms. Evaluation demonstrates millisecond-level latencies at scale while maintaining correctness guarantees under failure conditions, making it suitable for production deployment in large-scale data science pipelines requiring both low-latency responsiveness and analytical rigor.