Skip to main content

Real-Time Tips

Tips are the core data type in Statbate. Every tip across all six platforms is captured as it happens.

How It Works

  1. Collector connects — A Go-based collector maintains WebSocket connections to active rooms on each platform
  2. Tip event fires — When a viewer sends a tip, the platform broadcasts the event
  3. Collector captures — The collector receives the event and extracts tip details
  4. Database insert — The tip is batched and inserted into ClickHouse within seconds
  5. Available for query — The tip appears in Statbate dashboards and search results

Latency

Tips typically appear in the database within 30 seconds of the actual tip event. This includes:

  • WebSocket message delivery (< 1 second)
  • Collector processing (< 1 second)
  • Batch insert interval (up to 30 seconds)

Coverage

Collectors track thousands of rooms simultaneously per platform. Room lists are refreshed periodically to add newly streaming models and remove offline ones.

Not every room is tracked — collectors prioritize rooms with active viewers. Very low-traffic rooms may not be monitored.

Deduplication

Tips are deduplicated to prevent double-counting. Each platform has its own deduplication strategy based on unique event identifiers.