MirahLabs Engineering Blog

Technical insights, tutorials, and architectures written by our design and backend engineers.

Active Filters: Tag: python Clear All
Python June 02, 2026

Python Performance Profiling: Finding and Fixing Bottlenecks

Before optimizing Python code, measure first. Learn how to use cProfile, py-spy, memory_profiler, and line_profiler to identify real bottlenecks—not the ones you assume.

⏱️ 20 min read Read Article
Python May 26, 2026

Async Python with asyncio and aiohttp: Building High-Concurrency APIs

Python's asyncio enables non-blocking I/O that handles thousands of concurrent connections with a single thread. Learn async patterns, event loops, and building async REST APIs.

⏱️ 21 min read Read Article
Python May 25, 2026

Redis Beyond Caching: Pub/Sub, Streams, Sorted Sets, and Distributed Locks

Redis is far more than an in-memory cache. Explore its lesser-known superpowers: Pub/Sub messaging, Redis Streams for event logs, sorted sets for leaderboards, and Redlock for distributed coordination.

⏱️ 21 min read Read Article
Python May 19, 2026

Python Web Scraping at Scale: Scrapy, Playwright, and Proxy Rotation

Extract data from complex websites. Build high-concurrency crawlers using Scrapy and handle dynamic JavaScript rendering with Playwright integration.

⏱️ 21 min read Read Article
Python May 10, 2026

Python Memory Management: Reference Counting and Generational Garbage Collection

Deep dive into CPython's memory management model: reference counting, memory allocation arenas, and how generational garbage collection resolves cyclic references.

⏱️ 21 min read Read Article
Python May 08, 2026

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.

⏱️ 20 min read Read Article