devops

Using Python for DevOps tasks like automation, scripting, and infrastructure work.

FastAPI Capstone: Build, Test, and Ship a Real API

This FastAPI project is the capstone for Part 3: one small but real Application Programming Interface (API) that you build, test, containerize, gate behind CI, and deploy to a public URL. It is a bookmarks service (sign up, log in, save links, list them with pagination), the kind of thing you could actually put your name on and hand to an interviewer. “Code without tests is broken as designed.” Jacob Kaplan-Moss, Django co-creator Last Updated: July 2026 | Tested on: ... Read More

Python Profiling: Find Slow Code with cProfile and py-spy

Python profiling is how you find the slow parts of your code with evidence instead of a hunch. This guide shows you the three tools that matter, cProfile for the big picture, timeit for tiny measurements, and py-spy for a program that is already running, then walks you through reading a flame graph and fixing the hotspots for a real, measured speedup. “Measure. Do not tune for speed until you have measured, and even then do not unless one part ... Read More

SQL Indexes, Query Plans, and Schema Design That Scales

SQL indexes are the single biggest lever you have for making a slow database query fast, and in this post you will watch one index turn a query from 72 milliseconds into 0.04 milliseconds on a one million row table. You will also learn to read EXPLAIN QUERY PLAN line by line, design a schema that stays fast as it grows, keep your data honest with transactions, and kill the N+1 query problem that quietly wrecks so many apps. “An ... Read More