| Crates.io | ringkernel-txmon |
| lib.rs | ringkernel-txmon |
| version | 0.4.0 |
| created_at | 2025-12-03 22:59:19.036139+00 |
| updated_at | 2026-01-25 21:28:54.067793+00 |
| description | GPU-accelerated real-time transaction monitoring showcase for RingKernel |
| homepage | https://github.com/mivertowski/RustCompute |
| repository | https://github.com/mivertowski/RustCompute |
| max_upload_size | |
| id | 1965455 |
| size | 318,641 |
GPU-accelerated real-time transaction monitoring showcase for RingKernel.

TxMon demonstrates RingKernel's capabilities for high-throughput financial transaction monitoring, suitable for banking/AML compliance scenarios. It includes a transaction factory, compliance rule engine, and real-time GUI.
The cuda module provides three different GPU-accelerated approaches:
Each thread processes one transaction independently. Best for maximum throughput on large batches.
// ~93B elem/sec on RTX Ada
let alerts = batch_kernel.process(&transactions).await?;
Persistent GPU kernels with HLC timestamps and K2K messaging. Best for low-latency streaming with complex multi-stage pipelines.
let kernel = ring_kernel.launch("monitor", config).await?;
kernel.send(transaction).await?;
Uses GridPos for spatial pattern detection in transaction networks. Detects circular trading, velocity anomalies, and coordinated activity patterns.
let config = StencilConfig::new("pattern_detect")
.with_tile_size(16, 16);
let patterns = stencil_kernel.detect(&network).await?;
use ringkernel_txmon::{TransactionGenerator, MonitoringEngine, GeneratorConfig};
// Create transaction generator
let config = GeneratorConfig {
transactions_per_second: 10000,
fraud_ratio: 0.01, // 1% fraudulent
..Default::default()
};
let generator = TransactionGenerator::new(config);
// Create monitoring engine
let engine = MonitoringEngine::new(MonitoringConfig::default());
// Process transactions
for tx in generator.generate_batch(1000) {
if let Some(alert) = engine.evaluate(&tx) {
println!("Alert: {:?}", alert);
}
}
| Type | Description |
|---|---|
VelocityBreach |
Too many transactions in time window |
AmountThreshold |
Single transaction exceeds limit |
Structuring |
Pattern of transactions just below threshold |
GeographicAnomaly |
Unusual geographic pattern |
cargo run -p ringkernel-txmon --bin txmon
cargo run -p ringkernel-txmon --bin txmon-benchmark --release --features cuda-codegen
Typical results on RTX 4090:
| Operation | Throughput |
|---|---|
| Batch Kernel | ~93B elem/sec |
| Pattern Detection | ~15.7M TPS |
cargo test -p ringkernel-txmon
The crate includes 40+ tests covering transaction generation, rule evaluation, and GPU kernels.
Apache-2.0