MirahLabs Engineering Blog
Technical insights, tutorials, and architectures written by our design and backend engineers.
Infrastructure as Code with Terraform: From Zero to Production
Terraform lets you define cloud infrastructure as declarative code, enabling repeatable, version-controlled deployments. This guide covers modules, state management, and workspace strategies.
Self-Attention vs. State Space Models (Mamba): The Battle for Sequence Modeling
Transformers struggle with O(N^2) context scaling. Discover how State Space Models (SSMs) like Mamba offer linear O(N) scaling for long context windows.
Observability at Scale: Distributed Tracing with OpenTelemetry and Grafana
Modern distributed systems require more than logs and metrics—they need traces that follow requests across services. Learn how to implement full observability using OpenTelemetry and Grafana.
Writing Clean Code: SOLID Principles with Python Examples
SOLID principles are the foundation of maintainable object-oriented code. This guide explains each principle with practical Python examples and shows how they prevent the most common design problems.
Building Production RAG Pipelines with LangChain and PostgreSQL pgvector
How to build Retrieval-Augmented Generation (RAG) systems that ground LLM responses in private documents using LangChain orchestration and PostgreSQL's pgvector extension.
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.