cover

Overview

API Stress Test Dashboard

HTTP API 黑箱壓力測試平台,具備 Web UI 管理介面、規則引擎自動瓶頸分析、跨框架比較。

相關文章系列:68 篇文章系列

Architecture

Web UI (Next.js 15, port 13000)
    → API Server (Express + TS, port 14000)
        → k6 (壓測引擎, spawn process)
            → Target API (被測系統)
        → PostgreSQL (設定/報告儲存)
        → InfluxDB (k6 metrics)
    ← WebSocket (即時指標廣播)
    ← Grafana (視覺化 dashboard, port 13001)

Key Features

FeatureDescription
20 條分析規則Response time、error rate、throughput、DB pool、CPU blocking、tail latency
規則引擎Run 完成自動分析瓶頸,可 dry-run 測試
6 種測試類型Load / Stress / Spike / Soak / Integration / Custom
Monaco Editor線上編輯 k6 腳本,腳本版本管理
WebSocket 即時監控壓測進行中看即時指標
HTML 報告自動產生,按 Project 分離
跨框架比較已對接 9 個後端框架

Supported Frameworks

FrameworkPortHealthStatus
Django8000/health/✅
.NET Core5050/health✅
Express-TS3000/health✅
FastAPI8000/api/health✅
Go18080/health✅
Laravel8000/api/health✅
NestJS3001/api/health✅
Spring Boot28080/health✅
Express.js3000/health⚠️

Screenshots

Benchmark Comparison

Insights Overview

Rule Engine

Tech Stack

k6 + xk6-influxdb ・ Node.js + Express + TypeScript + pino ・ Next.js 15 + Tailwind + Monaco + Recharts ・ PostgreSQL 16 + Sequelize ・ InfluxDB v2 ・ Grafana 11 ・ Docker Compose


← Back to Portfolio