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?

Engenheiro sênior15 minLaboratório de performanceSimulador de fluxo
angularspring-boothibernatepostgresqlhttp

Este desafio ainda não foi traduzido para Português (Brasil). Você está lendo a versão em inglês.

Missão:Fix each layer from its role's perspective, then bring the cold (uncached) load under one second.Contexto · Objetivos de aprendizagem ▾

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.

Missão: Fix each layer from its role's perspective, then bring the cold (uncached) load under one second.

Objetivos de aprendizagem

  • 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.
SimulaçãoSimulado
BrowserAPIPostgreSQL
Executar simulação

Execute a simulação para ver a saída.

Simplificação

Fixed costs per round trip, query and kilobyte; six identical widgets. Modelo educacional — os números ilustram comportamento, não são benchmarks.

Conceitos

Útil antes deste

Desafios relacionados

Referências