starrocks-realtime-analytics

Design StarRocks real-time analytics pipelines from Kafka streams to BI-ready queries.

14|1|Updated May 5, 2026
One-click install
npx skills add https://github.com/ivanshamaev/de-agent-skills --skill starrocks-realtime-analytics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: starrocks-realtime-analytics
Source: https://github.com/ivanshamaev/de-agent-skills/tree/main/group_skills/starrocks_group_skills/starrocks_realtime_analytics
Command: npx skills add https://github.com/ivanshamaev/de-agent-skills --skill starrocks-realtime-analytics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of delivering sub-minute analytics from Kafka streams while keeping BI queries low-latency and dashboard-friendly in StarRocks.

Core Features & Use Cases

  • Kafka → Routine Load ingestion: set up near-real-time ingestion with tuned batch interval, concurrency, JSON mapping, strict mode, and UTC handling.
  • Primary Key real-time tables: design StarRocks Primary Key tables with range partitioning and low-latency storage settings for upsert-like updates.
  • Real-time serving for dashboards: write time-window metric queries and use async materialized views for repeated aggregations to reduce query cost.
  • Low-latency multi-table querying: apply colocate join patterns so join execution avoids unnecessary shuffle during real-time queries.
  • Operational stability: isolate ingestion vs OLAP workload using resource groups to prevent contention.
  • Freshness monitoring: check ingestion lag (seconds behind latest record) to drive alerts for real-time dashboards.

Use Case example: you ingest order events from Kafka and power a live “revenue last 15 minutes” dashboard with pre-aggregated MV-backed queries refreshed every minute.

Quick Start

Create a StarRocks Primary Key table for your events, configure Routine Load from your Kafka topic, and query the last-15-minute metrics in Grafana using minute-level time aggregation.

Frequently Asked Questions about starrocks-realtime-analytics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a StarRocks real-time analytics pipeline from Kafka for sub-minute dashboards?

To build a StarRocks real-time analytics pipeline, configure Routine Load for Kafka stream ingestion, design Primary Key tables for upserts, and apply async materialized views for pre-aggregating rolling-window metrics to achieve sub-minute dashboard freshness.

How does a StarRocks Primary Key table handle real-time upserts from Kafka?

A StarRocks Primary Key table handles real-time upserts by enforcing unique primary keys during Kafka ingestion, replacing existing records with low-latency storage settings and range partitioning to efficiently serve fresh data for BI queries.

Does StarRocks Routine Load support low-latency Kafka ingestion with JSON mapping?

StarRocks Routine Load supports low-latency Kafka ingestion by tuning batch interval, concurrency, strict mode, and JSON mapping, including UTC handling, to continuously stream events into Primary Key tables for near-real-time querying.

What's the best way to optimize repeated aggregations for time-window metric queries in StarRocks?

The best way to optimize repeated aggregations for time-window metric queries in StarRocks is using async materialized views to pre-aggregate rolling-window metrics, reducing query cost and latency for live dashboards.

Why should I use colocate join and resource groups in StarRocks real-time analytics?

Use colocate join in StarRocks to avoid unnecessary shuffle during low-latency multi-table queries, and apply resource groups to isolate ingestion from OLAP workloads, preventing operational contention and stabilizing real-time serving.

How do I monitor ingestion lag and freshness for real-time StarRocks dashboards?

Monitor ingestion lag and freshness for real-time StarRocks dashboards by executing freshness monitoring queries that check seconds behind the latest Kafka record, driving alerts when sub-minute data delivery thresholds are breached.