Load testing
Web
Customers
GitHub (Static deployment, CI/CD)
Dev (QA)
AWS (Cloud deployment)
Testing
Linting
Coverage
Grafana (Observability, load & synthetic testing)
CDN
Scalable�compute
Scalable�db
Pages
Jest
Playwright
Penetration testing
Christlike
introspection
Curiosity
report
Metrics
Logging
Load testing
Actions
Chaos testing
TDD
Load testing
Gaining confidence your app
will stand up under pressure
Concurrent�customers
Latency
Concurrent�customers
Latency
Concurrent�customers
Latency
Web
AWS
CDN
Scalable�compute
Scalable�db
Load�Simulated customers
Customers
Type | Purpose |
Load | Expected load |
Soak | Expected load over an extended time period |
Smoke | Low load |
Spike | Sudden increase in load |
Stress | Higher than expected load |
Load testing is also
end to end testing (e2e)
K6
import { sleep, check, group, fail } from 'k6'
res = http.put('https://pizza-service.cs329.click/api/auth', '{"email":"d@jwt.com","password":"a"}', {
headers: {
'content-type': 'application/json',
origin: 'https://pizza.cs329.click',
},
});
if (!check(res, { '200': response => res.status.toString() === '200' })) {� console.log(response.body);
fail('Login was *not* 200');
}
Create a load test
🍕Deliverable ⓾�Load testing: JWT Pizza Service
☑Assignment
Get busy!