~/talk

Load Testing Made Easy with Gatling

Talkat Scala Days 2023 Madrid · 2023-09-12..09-14· [testing, scala]
links:none on file
slides:none on file

Builds a small Scala 3 GraphQL service backed by Postgres and exercises it with Gatling simulations that ramp 0 → 20 users over 30s, hold constant 30s, then ramp down, generating random valid queries with ScalaCheck generators and sending them via Gatling. Initial test on ~500 companies and a few thousand employees fails with ~95% connection timeouts until missing foreign-key indexes are added; after indexing requests finish under 500ms. A second simulation fetching 5–10 companies shows ~10× lower throughput and several responses over 2–4s.

AI-written summary · about

  1. 0:00Load testing with Gatling
  2. 1:12Test scenario and API setup
  3. 10:49Scala service for testing
  4. 12:13Gatling simulation phases
  5. 15:13Dynamic GraphQL queries with ScalaCheck
  6. 23:39First load test and results
  7. 25:26Fixing DB indexes for performance
  8. 27:17Second GraphQL query test
  9. 31:35Open vs closed workload models
  10. 33:28Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.