Skip to content

Varpulis Real-World Scenarios

Five industry scenarios demonstrating Varpulis's key differentiators: native Kleene closure, Hamlet multi-query optimization, sub-millisecond latency, and 3-16x memory advantage.

ScenarioIndustryKey DifferentiatorDocument
Credit Card Fraud DetectionFinancial ServicesKleene closure captures 5x more fraud patterns than greedy-matching competitorsVPL
Predictive Equipment FailureManufacturing / IoTMulti-sensor correlation with explainable alertsVPL
Insider Trading SurveillanceCapital MarketsHamlet trend_aggregate monitors 50+ symbols at 100x throughputVPL
Cyber Kill Chain DetectionCybersecurity / SOCMulti-stage attack detection with complete forensic trailVPL
Patient Safety MonitoringHealthcareSub-millisecond drug interaction detection across prescribersVPL

Running the Scenarios

Each scenario has a .vpl (rules) and .evt (test events) file in tests/scenarios/.

bash
# Run all CxO scenario tests
cargo test -p varpulis-runtime --test cxo_scenario_tests

# Run a specific scenario
cargo test -p varpulis-runtime --test cxo_scenario_tests cxo_fraud

# Run with a live event file
varpulis simulate tests/scenarios/cxo_fraud_detection.vpl \
    --events tests/scenarios/cxo_fraud_detection.evt

Benchmark Highlights

MetricVarpulisTraditional CEPAdvantage
Single-query throughput6.9 M events/s2.4 M events/s3x
Multi-query (50 patterns)950 K events/s9 K events/s100x
Memory per instance10-54 MB85-190 MB3-16x less
LatencySub-millisecond15-minute batch cyclesReal-time

Varpulis - Next-generation streaming analytics engine