Rate Limit

Episode #482 by Teacher's Avatar David Kimura

Summary

In Rails 7.2, a new feature was added that allows us to establish rate limits where the number of requests in a certain amount of time can be throttled. In this episode, we'll dive into the specifics of the rate limits and how they can be used.
rails security request 11:08

Chapters

  • Introduction (0:00)
  • Generating a Rails 8 app (0:33)
  • Running the Authentication Generator (0:51)
  • Exploring the generated files (1:46)
  • Explaining the Rate Limit (2:14)
  • Testing the Rate Limit (3:01)
  • Rate limit on the Welcome#index (3:24)
  • Examining the logs (4:01)
  • Exploring multiple rate limits (6:14)
  • Order of Operations (7:08)
  • Separating the rate limits (7:29)
  • Different responses on Rate Limits (8:38)
  • Warning about quick throttles (9:30)
  • Final thoughts (10:40)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams