PinnedInPython in Plain EnglishbyMahdi Jafari·Jul 27, 2025Common FastAPI Anti-Patterns: What to Avoid for Production-Ready APIsFastAPI is a powerful and flexible framework that can help you build high-performance APIs rapidly. However, like any tool, it’s easy to…A response icon2A response icon2
PinnedInPython in Plain EnglishbyMahdi Jafari·Jul 24, 2025Building Real-Time Applications with FastAPI and WebSockets: A Practical GuideWebSockets provide a way to create real-time, bidirectional communication between a client and a server. With FastAPI’s built-in support…
PinnedMahdi Jafari·Jul 5, 2023Mastering SOLID Principles in Python: Understanding Open-Closed PrincipleWelcome to the second edition of The Python Newsletter! I’m thrilled to have you here. In this issue, we will delve into one of the key…
PinnedMahdi Jafari·Jul 19, 2025Soft Skills for Software Engineers: Unlocking Success Beyond CodeIn an era dominated by technological advances, software engineers often focus intensely on honing their technical abilities. However…A response icon3A response icon3
PinnedMahdi Jafari·Jun 11, 202410 Lessons I Learned from 5 Years of Being a Software EngineerFive years ago, I began my career in software engineering. With my laptop and W3schools as my learning resource, I started this exciting…A response icon3A response icon3
InPython in Plain EnglishbyMahdi Jafari·Nov 21, 2025Handling File Uploads in FastAPI: From Basics to S3 IntegrationUploading files is a common task in web applications. Doing it wrong can cause memory issues, security risks, or slow performance. This…A response icon2A response icon2
InPython in Plain EnglishbyMahdi Jafari·Nov 4, 2025Caching Strategies for FastAPI: Redis, In-Memory, and HTTP Cache HeadersCaching is one of those things that seems straightforward until you realize there are three different layers to think about. I’ve seen…
InPython in Plain EnglishbyMahdi Jafari·Oct 14, 2025How to Get the Real Client IP in FastAPI Behind a Reverse ProxyWhen you deploy FastAPI behind Nginx, Traefik, or Caddy, every request appears to come from the same IP address — typically something like…A response icon2A response icon2
InPython in Plain EnglishbyMahdi Jafari·Oct 13, 2025Essential Middlewares Every FastAPI Developer Should KnowFastAPI is already fast and powerful out of the box. But if you’re building production applications, you need more than just the core…A response icon1A response icon1
InPython in Plain EnglishbyMahdi Jafari·Oct 10, 2025Track Request Performance in FastAPI with One Simple MiddlewareEvery production API needs performance monitoring. Here’s how to add request timing to your FastAPI app in under 10 lines of code.