Home

Blog

Posts tagged with: #Best Practices

A Practical Guide to FastAPI Security

October 24, 2025

A Practical Guide to FastAPI Security

A Comprehensive Checklist for Production-Ready Security for a FastAPI Application

Secure your FastAPI app with a complete checklist. Covers XSS, SQL Injection, rate limiting, secure headers, authorization, logging, and protecting API docs.

Read More...

Centralizing Your FastAPI Configuration Settings with Pydantic Settings

June 15, 2025

Centralizing Your FastAPI Configuration Settings with Pydantic Settings

How to Organize and Load FastAPI Configuration Settings from a .env File Using Pydantic Settings

Learn how to centralize your FastAPI configuration using Pydantic Settings and a .env file. This post covers setup, usage, and best practices for managing environment variables and secrets in a maintainable way.

Read More...

6 Essential FastAPI Middlewares for Production-Ready Apps

February 4, 2025

6 Essential FastAPI Middlewares for Production-Ready Apps

A guide to the 6 key middlewares for building secure, performant, and resilient FastAPI applications.

Learn how to build a production-ready FastAPI applications by implementing 6 essential middlewares. This guide covers security headers, CORS, trusted hosts, Gzip compression, process time tracking, and custom exception handling, including why their order is critical.

Read More...

Contact Me

Have a project in mind? Send me an email at hello@davidmuraya.com and let's bring your ideas to life. I am always available for exciting discussions.

© 2025 David Muraya. All rights reserved.