Files
2026FIFAWorldCup/docs/realtime-scheduler-matrix-2026-06-14.md
QuantBot 64cae96d0d
Some checks failed
2026 World Cup Quant Platform - Production Deployment / Code Quality, Security Gate & Testing (push) Failing after 4m12s
2026 World Cup Quant Platform - Production Deployment / Deploy to Production VM via Gitea CD (push) Has been skipped
deploy: push latest version to production
2026-06-26 14:06:37 +08:00

1.7 KiB
Raw Blame History

即時資料排程矩陣

更新時間2026-06-14 Asia/Taipei

Production workers

Worker 頻率 職責 狀態寫入
fifa2026-odds-worker 300 秒 賠率、比分、比賽狀態、完賽結果同步The Odds API + ESPN scoreboard 備援 ingestion:odds:last_run
fifa2026-news-worker 900 秒 世界盃新聞 RSS 快照更新 news:worldcup:latest, ingestion:news:last_run
fifa2026-fixtures-worker 21600 秒 完整賽程 fixtures JSON upsert可用 FIXTURES_JSON_URL 切換官方或授權來源 ingestion:fixtures:last_run
fifa2026-seed 部署時一次 場館、比分欄位、安全 upsert Docker completed success

前台讀取策略

  • 首頁資料源健康卡讀 /api/analytics/source-health
  • 新聞頁與首頁新聞讀 /api/news
  • /api/news 優先讀 backend news snapshot沒有快照才 fallback Google News RSS。
  • 賽事列表讀 /api/analytics/matches,包含繁中隊名、比分、狀態、場館。
  • 每日推薦讀 /api/analytics/daily-card/{date},包含勝平負、大小球、雙方進球、串關/同場候選。

資料來源策略

  • FIXTURES_JSON_URL 預設為 https://www.thestatsapi.com/world-cup/data/fixtures.json
  • 若取得 FIFA 官方 API 或授權 sports data feed直接替換 FIXTURES_JSON_URLworker 不需改程式。
  • 台灣運彩 adapter 仍需確認 robots、條款與更新頻率限制後再接入。

還需要補強

  • 台灣運彩合法參考盤 adapter。
  • live minute / possession / red card 事件源。
  • Worker failure alertTelegram/Email 告警。
  • 資料延遲 SLA首頁顯示下一次更新時間與 stale 警示。