~/talk

Beyond the Spinning Wheel: Building Robust and Resilient APIs

Talkat WhatTheStack 2025 · on Saturday, 2025-09-20· [api-design, web-performance]
links:none on file
slides:none on file

Loads a Spring + Kotlin API with Gatling and a simple RestTemplate client and shows concrete numbers: a 5% external timeout inflates median latency to 19s (50th), 36s (75th), 52s (95th) and produces ~400–500 waiting requests, while enabling Java virtual threads drops 75th to ~85ms and 95th to ~5s. Implementing a 5s client timeout yields ~770ms 95th. Adding client-side rate limiting cuts median from 27s to ~2.66s and limits concurrent waiters to ~30. Patterns: timeouts, fail-fast rate limits, circuit breakers; tools: Gatling, virtual threads, Resilience4j/Polly/express-rate-limit.

AI-written summary · about

  1. 0:00Introduction and story
  2. 4:04Go to production early
  3. 10:05Web service concurrency models
  4. 14:40Root cause analysis
  5. 17:27Demo setup and code
  6. 21:07Load testing simulation
  7. 23:55Impact of timeouts on performance
  8. 26:27Solutions for timeouts
  9. 29:43Rate limiting issues
  10. 31:49Rate limiting solutions
  11. 33:58Circuit breaker pattern
  12. 35:49Libraries and references
  13. 36:11Key takeaways and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.