Why Your FastAPI App Needs a Rate Limiter | Issue #15


Hi there,

Tired of your API crashing due to too many requests? Want to keep it running smoothly? 💡

In this week’s video, I’ll explore the concept of rate limiting and how to implement it effectively in your FastAPI applications.

Learn why rate limiting is important, discover the different types of rate limiting you can do, and follow a step-by-step tutorial on integrating rate limiting with FastAPI using both custom code and the powerful SlowAPI library. 🛠️

Plus, I’ll share insights from my experience working on Learntail and how we use rate limiting to ensure smooth performance and security.

Cheers,

Arjan

# News

Master Python Descriptors

Ever wondered how Python’s @property works its magic? Or how @classmethod knows the first argument is a class? 🧐

This week in ArjanCodes’ blog, we’ll take a closer look at Python descriptors. This blog will help you understand how to use descriptors to simplify your code and introduce some clever techniques found in popular libraries like Pydantic and SQLAlchemy.

If you’re interested in writing cleaner, more maintainable Python code, or just want to get a better grasp on some of Python’s more advanced features, click here to read the full article.

# News

Data Structures and Algorithms, Correctly

Jeremy Siek’s latest post dives deep into the functional programming approach to building robust code. 🖥️

Using the Deduce language, he explores how to test and prove the correctness of linked lists, sequential search, and more.

This comprehensive guide is perfect if you want to enhance your understanding of logic, testing, and proof in programming. 🌟 Click here to find out more.

# Community

Wondering if there’s a market for Python-specialized developers? Our community recently explored this question and shared valuable insights! 💡

A member was concerned about finding opportunities beyond data engineering and data science despite their advanced Python skills. The discussion highlighted that Python is widely used in DevOps and Data Science, and transitioning between fields requires demonstrated project work.

Curious to learn more? Join our Discord server to read the full discussion and get tips on navigating your career as a Python developer! 🌟


Do you enjoy my content on YouTube and would you like to dive in deeper? Check out my online courses below. They've helped thousands of developers take the next step in their careers.

🚀 The Mindset Online Course Series

The goal of this series is to help junior developers grow their skills to become senior developers faster.

💥 Other Courses

💡 If you’re part of a development team at a company, I offer special packages for companies that give your team the tools to consistently write high-quality code and dramatically increase your team's productivity.

🪄 Learntail

My team and I created an AI quiz generator designed to accelerate your learning, called Learntail. You can try it for free or unlock even more capabilities and features with the monthly subscription. Take a look here.

Unsubscribe | Send by ArjanCodes

Jan van Eijklaan 2-4, Bilthoven, UT 3723 BC

The Friday Loop

Every Friday, you'll get a recap of the most important and exciting Python and coding news. The Friday Loop also keeps everyone posted on new ArjanCodes courses and any limited offers coming up.

Read more from The Friday Loop

Hi there, This week’s video covers tips you probably haven’t considered—ones that can make or break your code and potentially save you hours of debugging. 🕵️♂️ Today I’m breaking down the art of designing function headers—because a good one makes your life 10x easier, while a bad one… well, you’ll wish you had known sooner. 👨💻 I’ll walk you through the essentials of function naming, and why using verbs in your function names can make all the difference.You’ll also learn how to streamline your...

Hi there, Ever wondered why Python sometimes behaves in unexpected ways? In this week’s video, I’ll be showing you 13 strange things in Python that might just blow your mind! 🤯 Especially the last one—it’s really confusing! From the mysteries of integer caching to the quirks of mutable default arguments, this video is packed with examples that will make you question everything you know about Python. 🐍 P.S. Stay tuned until the end of the video for an awesome Easter egg in Python you might not...

Hi there, Is your object-oriented Python code turning into a tangled mess? 🍝 Yes, this isn’t the kind of spaghetti you want to see on a Friday night. In this week’s video, I’ll uncover common bad OOP practices and tips for keeping your code clean and maintainable. Learn why simple functions can replace unnecessary classes and why using modules might be more effective than relying on classes with only static methods. 🚀 I’ll also discuss the pitfalls of deep inheritance hierarchies and the...