AWS 串流資料平台架構:Kafka → Iceberg → Kimball → Athena
- URL: https://www.threads.com/share/__vpN5oen/
- Canonical: https://www.threads.com/@myps6415/post/DevBDmwga6A
- Date Saved: 2026-10-21
- Source: Threads
- Tags: ai-engineering, dev-tools
- Author: @myps6415
Summary
一位工程師用 AWS 建了一套 end-to-end 串流資料平台,目標是追蹤「誰在哪個裝置看了什麼、看到哪一秒離開」:
架構
- Pipeline: Kafka → Iceberg data lake → Kimball 維度模型 → Athena SQL 報表
- 排程: Airflow 3
- 技術選擇: Kafka on EC2、Glue PySpark、dbt-athena,全部自管理
設計亮點
- Landing zone 設計: Landing 其實是 Kafka 的副本,真正的 replay 來源是 Kafka 保留 7 天的訊息,不是 landing。因此 landing 可以是可更新的 Iceberg 表格,而非 immutable blob
- 五層資料湖品質閘門: 分數低於 70 就阻斷下游 — 這種紀律在大多數公司很少見
- 自管理 vs Serverless 的取捨: 作者邏輯是 serverless 便宜,但永遠不會真的搞懂底層。維運負擔不輕,需要全端資料工程能力
Key Insight
這是一個「理解代價分配」比「選技術」更重要的案例。Landing zone 不是唯一的 replay 來源、品質閘門阻斷下游、自管理換取理解力 — 每個決策都有清楚的 trade-off 意識。