Learning Pathintermediate

Load Testing with K6

Prove your API holds up before users find out it doesn't.

Time

~1 h

Lessons

10

Chapters

4

Assignments

4

Disable AI suggestions while you learn

This course teaches you to hand-write every line of code. Open VS Code (or your editor of choice) and turn off Copilot, Cursor Tab, Tabnine, Codeium, and any inline AI autocomplete before you start a lesson.

AI mid-completion robs you of the small mistakes that make concepts stick. You'll be a faster, more independent developer at the end of the course if you type every character yourself. Re-enable AI for your real work after — never during a lesson.

Goal of this course: learn, not ship fastest.

What you'll build

A k6 test suite for your Grit API with 6 scenario types, run locally and in CI, that catches regressions before they ship.

What you'll learn

When to load-test (and when not)
k6 fundamentals — VUs, iterations, scenarios, thresholds
The 5 test types: smoke, load, stress, spike, soak
Reading p50/p95/p99 and what each tells you
Finding the bottleneck: API, DB, network, or your test rig
Wiring k6 into GitHub Actions so PRs that regress get blocked

Prerequisites

  • Completed Building a Go API
  • Comfortable in a terminal

Who this is for

  • Devs shipping APIs to production
  • SREs setting up performance gates
  • Teams who got burned by a surprise outage at launch

Ready to start?

Lesson 1 takes ~6 minutes. By the end of this hour you'll be writing real code.