JMeterとk6を使用してシステムをストレステストする
Performance testingは、実際のトラフィック下で耐えられるアプリケーションと、肝心な時に落ちてしまうアプリケーションを区別するものです。このトラックでは、業界で最も広く導入されている2つのツールを使用したload testingとperformance benchmarkingについて学びます。JavaベースのApache JMeterは実績のあるload generatorで、k6は最新のpipelineのために構築されたdeveloper-friendlyなJavaScript scripting engineです。制御されたストレス条件下でthroughput、latency、error rateを測定し、そのデータを使用してcapacityとコードについて十分な情報に基づいた判断を下すことを学びます。
学習内容
JMeter test planをゼロから構築し、advanced controllers、assertions、dynamic data handling、現実的なsession flowsのためのcorrelationで拡張します。JavaScriptでk6 testsをscriptし、scenariosとstaged load profilesを使用してcloud executionにプッシュします。Performance testsをCI/CD pipelinesに直接統合して、deployment前にregressionを捕捉します。monitoring and analysis toolsを使用してresultsをprofileし、databases、APIs、infrastructureのボトルネックを特定します。microservices、containerized workloads、および実世界のシナリオパターンを使用した他の最新アーキテクチャにこれらのスキルを適用します。
学習パス
12のコースはA2からC1を通じて進行します。このトラックはJMeter Basics: Building Your First Test PlanとFundamentals of Performance Testingで始まり、堅固なベースラインを確立します。中盤のコースはJMeter Advanced: Controllers and Assertions、Performance Monitoring and Analysis、JMeter Dynamic Data and Correlation、k6 Fundamentals: Scripting with JavaScriptをカバーしています。後半のコースはPerformance Testing in CI/CD PipelinesとTesting Modern Architecturesに進みます。このトラックはC1レベルのコースk6 Advanced: Scenarios and Cloud Execution、Distributed Load Testing & Cloud Deployment、Performance Engineering and Optimizationで終了します。
仕組み
各コースは短くフォーカスされたlessonに分かれており、リアルタイムフィードバック付きの組み込みcode editorで完了できます。行き詰まったときはいつでもAI tutorが利用できるため、JMeter XMLのconfigurationやk6 JavaScriptのscriptsをペースを落とさずに自分のペースで進めることができます。