Learn Labs
Caching & Limits

Self-test

Check your understanding

Self-test7 questions

—/7
  1. Who decides how long a response is cached in this module's config?

  2. What did proxy_cache_lock and background update do during the stampede test?

  3. Why were stale responses slow in the earlier run and instant in the later one?

  4. Why is it dangerous to cache /api/private/me, and what stops Nginx from doing it?

  5. What does rate=20r/s burst=40 nodelay allow, and what happened to 100 simultaneous requests?

  6. How did the login limit treat 8 simultaneous attempts?

  7. Design question

    Design rate limits for a public API with API keys, behind a CDN.