doris-architecture-advisor
Skill50 starsChanged 13 days agoApache-2.0View on GitHub
Workload-aware architecture design for Apache Doris. MUST USE when designing data architectures, choosing between data models, planning ingestion strategies, sizing clusters, or translating business requirements into Apache Doris system designs. Complements doris-best-practices with decision frameworks and sizing-first workflow. Use when user describes a workload involving: IoT, sensor data, telemetry, real-time analytics, dashboard, log analysis, log search, CDC sync, time-series, device monitoring, point query service, ad-hoc analytics, lakehouse federation, ETL/ELT pipeline, report analytics, clickstream, user behavior, observability, metrics, fleet tracking, or any OLAP workload requiring table design from scratch. Also triggers on prompts like: "design a table for...", "how should I store...", "build an architecture for...", "we have X devices sending data every Y seconds", "recommend a cluster size for...", "what data model should I use for...", "we need to ingest X GB/day", "migrate from MySQL/PostgreSQL to Apache Doris". Also use for legacy analytics/search/serving stack consolidation prompts even when Apache Doris is not named explicitly, including replacing or migrating from Impala, Kudu, Elasticsearch/ES, Greenplum, Presto, HBase, Hive, Hadoop, Redis, or Lambda-style multi-engine data platforms.
In this repository16 other files it gives its agents.
- develop-with-evidenceSkill
- doris-best-practicesSkill
- doris-debug-cloudSkill
- doris-debug-compactionSkill
- doris-debug-data-lakeSkill
- doris-debug-deploymentSkill
- doris-debug-importSkill
- doris-debug-materialized-viewSkill
- doris-debug-nodeSkill
- doris-debug-querySkill
- doris-debug-resource-isolationSkill
- doris-debugSkill
- doris-debug-tabletSkill
- doris-pr-descriptionSkill
- doris-profile-readerSkill
- doris-repo-reviewSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Follow these 5 steps in order:
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Apache Doris Architecture Advisor
Workload-aware architecture design for Apache Doris. 8 decision rules, 3 worked examples. Complements
doris-best-practiceswith sizing-first workflow.
Workflow
Follow these 5 steps in order:
- DDL validation — The
doris-best-practicesskill handles DDL correctness. Its Pre-Flight Checklist and DDL Gotchas apply to every CREATE TABLE. This advisor focuses on architecture decisions (which model, which partition strategy, which indexes), not DDL syntax. Always calculate explicit bucket counts. If volume is unknown, choose a conservative default: 3 for small dimensions, 8 for medium tables, 16-32 for large daily fact tables. - Classify workload — Read
references/decision-workload-classification.md. Match user's scenario to one or more of the 6 workload types. Composite workloads (e.g., IoT = time-series + device state + logs + dashboards) decompose into multiple sub-tables. - Size the cluster — Read
references/decision-sizing-matrix.md. Estimate write throughput, query QPS, latency target, and hot data volume. Output sizing as total vCPU and total cache only — never break down into per-node specs (in cloud / storage-compute mode, node count is typically managed by the platform). Also readreferences/decision-deployment-mode.mdif user hasn't specified cloud vs on-prem. Design architecture — Based on workload classification, read the relevant decision rules:
Workload signal Read these rules Append-only events, logs, time-series decision-data-model-selection,decision-time-series-design,decision-ingestion-strategyUpdates, CDC, device state tracking decision-data-model-selection,decision-mutable-state,decision-ingestion-strategySemi-structured / multi-protocol JSON decision-data-model-selection(VARIANT section)Dashboards, pre-aggregated metrics decision-query-accelerationPoint query API, high-concurrency lookups decision-query-acceleration(point query section)Text search, log search, full-text decision-query-acceleration(index section)Vector / embedding search decision-query-acceleration(vector section)Warehouse layering (ODS/DWD/DWS/ADS) decision-workload-classification(layering section),decision-data-model-selectionMulti-department / workload isolation decision-workload-classification(isolation section)Hot/cold tiering with data lake decision-workload-classification(lakehouse section),decision-deployment-modeOutput the architecture design: data flow diagram, table-per-sub-workload mapping, and the key design decisions (model, partition strategy, bucket key, indexes, compression, ingestion method) for each table.
- Generate DDL — Produce CREATE TABLE statements applying ALL constraints from step 1. Calculate explicit bucket counts with the formula in
decision-time-series-design.md; use the fallback counts above when inputs are incomplete. For each table, cite the best-practices rule that drove the decision.
Output Structure
Responses should include these sections (adapt formatting to conversation):
- Workload Summary — Classification, write rate, QPS, latency target, hot data volume
- Sizing Recommendation — Warehouse tier, storage estimate, cache strategy
- Architecture Overview — Data flow from sources → ingestion → Apache Doris → applications
- Table Designs — CREATE TABLE with inline comments citing decision rules
- Rules Checked — For each table, list the rules applied with exact file paths so users can look up the rule for troubleshooting. Format:
Per [rule-name](doris-best-practices/references/rule-name.md). Example:Table: sensor_readings Rules Applied: - [schema-model-choose-for-workload](doris-best-practices/references/schema-model-choose-for-workload.md) — DUPLICATE for append-only - [schema-bucket-target-size](doris-best-practices/references/schema-bucket-target-size.md) — 10 buckets (21 GB / 2 GB) - [schema-props-compression](doris-best-practices/references/schema-props-compression.md) — ZSTD for IoT data - Decision Provenance — Each recommendation tagged:
official(from Doris docs),derived(logical inference), orfield(experience heuristic with disclaimer)
Worked Examples
For complete input → output examples, read:
references/example-iot-sensor-platform.md— IoT: 50K sensors, composite workload, 4 tablesreferences/example-log-observability.md— Logs + traces + metrics, inverted index, ZSTDreferences/example-cdc-operational-sync.md— MySQL CDC, UNIQUE MoW, sequence columnreferences/example-securities-analytics.md— Securities firm: ODS→DWD→DWS→ADS layering, customer 360, compliance, lakehouse, workload isolationreferences/example-retail-fashion.md— Retail/fashion: omnichannel inventory, wide+tall table for user profiling, BITMAP segmentation, multi-brand isolation, peak season scalingreferences/example-logistics-courier.md— Logistics/courier: AGGREGATE for parcel status (MIN/MAX/REPLACE), vehicle GPS with GIS + cooldown_ttl, sorting center KPIs, platform consolidation (Presto+Kudu+ES+HBase→Apache Doris)references/example-web3-exchange.md— Web3/crypto: multi-chain VARIANT schema, custody monitoring, TVL/token async MVs, AML risk detection, wallet profiling, session analysisreferences/example-payment-fintech.md— Payment/fintech: partial column update for tx lifecycle, acquiring row-column hybrid (100+ cols), merchant reconciliation, risk engine, log platform replacing ES, Lambda→unified architecturereferences/example-gaming.md— Gaming: retention/funnel analysis, player profiling BITMAP, NL2SQL Agentic analytics via MCP, anti-cheat anomaly detection, lakehouse for offline datareferences/example-adtech-marketing.md— AdTech/marketing: dual-path RTB serving + analytics, DSP/ADX, creative analysis with VARIANT + vector, cross-border multi-region, replacing Redis+MySQL+HBase+Hive
When NOT to Use This Skill
- Reviewing existing DDL → use
doris-best-practicesinstead - Optimizing a slow query → use
doris-best-practicesquery rules - CLI / connection setup → use
doris-best-practices"Connection & CLI" section
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

