Skip to main content
Performance14 min read

パフォーマンステスト:ゼロから本番へ

本番前に3つの重大なボトルネックを特定し、API応答時間を40%改善したパフォーマンステストスイートの構築方法。

Part ofTesting & QA->
By Jason TeixeiraDecember 28, 2023
LocustJMeterPerformance TestingPython
Share:
On this page

トレーディングプラットフォームのパフォーマンステストを構築し始めたとき、負荷テストはまったく行われていませんでした。本番環境で障害が発生する前にそれを検出するための、包括的な負荷テストスイートをどのように構築したかをご紹介します。

警告のきっかけ

本番稼働から3ヶ月後、市場が開くタイミングでトレーディングプラットフォームがダウンしました:

  • 500人以上のユーザーが同時にAPIにアクセス
  • 応答時間:200ms → 45秒
  • データベース接続が上限に達する
  • 最大200万ドルの取引機会を損失

私たちは自社のキャパシティ限界をまったく把握していませんでした。この問題の解決を任されることになりました。

フェーズ1:ベースラインの確立

負荷テストの前に、通常時の動作を把握する必要があります:

Reader route

article -> proof -> offer

ReadClusterProofScope

cluster

Testing & QA

intent

Performance

route

next step

What to do with this

Turn the note into a build path.

If this topic maps to a real business problem, keep reading the cluster, study the academy path, or route the work into a scoped engagement.

Jason Teixeira
Written by
Jason Teixeira
Founder, Sage Ideas Studio · Principal Engineer
livebuild 5d6c8652026-08-05 06:00Z
// solo studio// no analytics resold// every commit human-reviewed