The issue with traditional performance tracking is that it is often an afterthought. We treat performance as a debugging task, (something we do after users complain), rather than a quality gate. Worse, when we try to automate it, we run into the “Noisy Neighbour” problem. If you run a benchmark in a GitHub Action, and the container next to you is mining Bitcoin, your metrics will be rubbish. To become a Senior Engineer, you need to start treating performance exactly like you treat test coverage. The Solution: Continuous Performance Guardrails If you want to stop shipping slow code, you need…
Topic Archive
Devops
-
-
FastAPI Deployment Made Easy with Docker and Fly.io
·
·
8 min readFor the PDM program I worked on a FastAPI project to track books using the Google Book API and also provide AI powered recommendations using Marvin AI. As the project came closer to deployment, I knew that I wanted to try out containerization for a reliable and repeatable way to deploy. I chose Docker due to its widespread use, open-source nature, and consistent behavior across environments.If you’re new to Docker or looking for a straightforward guide to deploying a FastAPI app with Docker and Fly.io, this post is for you. FastAPI Set Up for Docker Before deploying the app, we…
-
This article covers how to package your Python code as a CLI application using just the official PyPA provided tools, without installing additional external dependencies. If you prefer reading code to reading words, you can find the full example demo code discussed in this article here: example repo of Python CLI packaged with PyPA setuptools build Run your Python code from the command line Run a Python file as a script Since Python is a scripting language, you can easily run your Python code from the CLI with the Python interpreter, like this: Create a CLI shortcut to bootstrap your…
-
How to Write a Python Class
·
·
5 min readIn this post I cover learning Python classes by walking through one of our 100 days of code submissions.