PIXLS.US

Chatburate

In the sprawling lattice of the Global Mesh, where data streams flow like rivers and every node hums with the cadence of human thought, there exists a subtle, almost imperceptible rhythm known only to the most attuned algorithms: .

| Table / Key | Fields | Description | |-------------|--------|-------------| | (Redis Hash chatburate:policy:policy_id ) | policy_id , type ( global|room|user ), target_id (room_id or * ), max_per_interval , interval_seconds , burst , allowed_roles (JSON array), created_at , updated_at | Immutable rule definition. | | counters (Redis Key chatburate:counter:scope:id ) | Token‑bucket fields: tokens , last_refill_ts (epoch ms) | Stored as a compact binary string (e.g., tokens|ts ). | | blocked_log (Elasticsearch index chatburate-blocked ) | timestamp , user_id_hash , room_id , policy_id , message_hash , client_ip | Immutable audit trail. | | metrics (Prometheus) | chatburate_allowed_total , chatburate_blocked_total , chatburate_latency_seconds | Exported by the API process. | chatburate