MirahLabs Engineering Blog
Technical insights, tutorials, and architectures written by our design and backend engineers.
Scaling Python Flask Applications with PostgreSQL
Best practices for configuring database pools, write indexes, caching, and utilizing Docker deployment structures for Flask backends.
Implementing OAuth 2.0 and OpenID Connect from Scratch in Flask
OAuth 2.0 and OIDC are the standards powering 'Sign in with Google/GitHub.' This guide explains the flows and implements a complete authorization code flow with PKCE in Flask.
Nginx as a Reverse Proxy for Flask: Configuration, SSL, and Performance
Nginx sits in front of your Flask app in production, handling SSL termination, static files, request buffering, and load balancing. Learn the optimal Nginx configuration for Flask deployments.
SQLAlchemy 2.0: The Complete Migration Guide
SQLAlchemy 2.0 introduces a new style API, async-first design, and significant performance improvements. Learn what changed and how to migrate your Flask applications.
Hexagonal Architecture (Ports and Adapters) in Python Flask
Hexagonal architecture separates your business logic from infrastructure concerns. Learn how to structure Flask applications with clean boundaries between domain, application, and infrastructure layers.
Deploying Flask on AWS ECS Fargate: A Production Blueprint
AWS ECS Fargate runs containers without managing servers. This complete blueprint covers building the image, pushing to ECR, configuring ECS services with ALB, and automating deployments with GitHub Actions.