The Real Fullstack

The Dashboard That Takes Eight Seconds

Every team says their part takes “only” a few hundred milliseconds. How does that add up to nine seconds?

シニアエンジニア15 分パフォーマンスラボフローシミュレーター
angularspring-boothibernatepostgresqlhttp

この課題はまだ日本語に翻訳されていません。英語版を表示しています。

ミッション:Fix each layer from its role's perspective, then bring the cold (uncached) load under one second.背景 · 学習目標 ▾

Quillfin's analytics dashboard loads six widgets. The browser requests them one after another, each endpoint lazily loads related rows, an aggregate query scans the events table, and raw rows are shipped to the browser to be summed. A distributed trace shows every layer contributing.

ミッション: Fix each layer from its role's perspective, then bring the cold (uncached) load under one second.

学習目標

  • Read a waterfall across browser, API and database.
  • Fix sequential requests, N+1 queries, missing indexes and oversized payloads.
  • Distinguish cold-load fixes from cache mitigations.
シミュレーションシミュレーション値
BrowserAPIPostgreSQL
シミュレーションを実行

シミュレーションを実行すると出力が表示されます。

簡略化

Fixed costs per round trip, query and kilobyte; six identical widgets. 教育用モデルです。数値は挙動を示すためのもので、ベンチマークではありません。

コンセプト

先に取り組むと役立つ課題

関連する課題

参考資料