Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Flask REST API!
You have completed Flask REST API!
Preview
Even known, authenticated users can abuse your API. By introducing a rate limiter, you can control how often someone can access your API in a given time period which can be the difference between 99.999% uptime and 9.9999%.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
protected methods is 99%
of what most APIs need.
0:00
But for that extra bit of security and
0:00
peace of mind, you probably want
to bring in some rate limiting.
0:02
Rate limiting makes it so
that a particular user can only access
0:06
an endpoint so
many times in a certain time period.
0:09
This helps prevent stampedes
against your API and
0:12
makes things that much more stable.
0:14
All right I got one last
feature I want to add and
0:17
this API will be more or
less ready for the world.
0:20
Right now I can hit this API
as many times as I want.
0:25
If I was to come over here to Postman,
and do a get on courses,
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up