Built byPhoenix

© 2026 Phoenix

← Home

Blog

Thoughts on software engineering, AI, Web3, and building great products.

The Index You're Missing: A Practical Guide to Postgres Performance

16 min read

Most slow Postgres queries aren't a hardware problem — they're a missing index. Here's how to read query plans and build the indexes your database is begging for.

PostgreSQLDatabasesPerformanceIndexing
Jun 5, 2026

Idempotency, or How Not to Charge a Card Twice

14 min read

A network timeout never tells you if the charge landed, so the client retries and the customer pays twice. How idempotency keys and reconciliation make retries safe.

IdempotencyPaymentsFintechDistributed Systems
May 25, 2026

Race Conditions and the Lies of SELECT: A Guide to Transactions & Isolation Levels

16 min read

A SELECT tells you what was true a moment ago, not what is true when you write. How lost updates happen in Postgres, and how to fix them with locks, version columns, and isolation ...

DatabasesPostgreSQLConcurrencyTransactions
May 14, 2026

Cache Invalidation Is Still Hard

14 min read

Caching is easy; invalidation is the hard part. Cache-aside, TTLs, the stale-read race, stampedes, and the Redis patterns I actually use to keep two copies of the truth in sync.

CachingRedisPerformanceDistributed Systems
May 2, 2026

Queues and Event-Driven Architecture: When, Why, and How Not to Get Burned

15 min read

Most teams reach for a queue too late, or for the wrong reasons. When a queue actually earns its keep, the patterns that stop it losing your data, and when to skip it entirely.

Message QueuesEvent-DrivenDistributed SystemsArchitecture
Apr 20, 2026

Claude, Claude Code, and Why AI Is Not Going Anywhere

14 min read

A personal take on working with both Claude and Claude Code as a software engineer, why AI is here to stay, the honest pros and cons, and the agent features I actually rely on.

Claude CodeClaudeAIDeveloper Tools
Mar 7, 2026

The Art of API Design: REST, GraphQL, tRPC, and When to Use Each

22 min read

A real-world comparison of API paradigms — REST, GraphQL, and tRPC. Learn the trade-offs in type safety, versioning, performance, and developer experience, and how tRPC eliminates ...

API DesignRESTGraphQLtRPC
Feb 24, 2026

Docker to Kubernetes: A Software Engineer's Production Journey

25 min read

From your first Dockerfile to production Kubernetes — a practical guide covering multi-stage builds, container best practices, Helm charts, rolling deployments, health checks, and ...

DockerKubernetesDevOpsInfrastructure
Feb 8, 2026

Why Your Next.js App Is Slow (And How to Fix It)

20 min read

Your Next.js app should be fast by default. If it isn't, something is wrong. This guide covers the most common performance killers — bundle bloat, unoptimized images, font loading ...

Next.jsPerformanceWeb VitalsReact
Jan 20, 2026

SSR vs CSR vs SSG: The Rendering Strategy Guide You Actually Need

18 min read

A practical, no-nonsense breakdown of Server-Side Rendering, Client-Side Rendering, and Static Site Generation. Learn how each strategy works under the hood, when to use which, and...

Web DevelopmentNext.jsSSRSSG
Dec 15, 2025

Data Replication in Distributed Systems: From CAP Theorem to Multi-Region Architecture

45 min read

A comprehensive deep-dive into data replication strategies for distributed systems. Explore the CAP theorem, advanced consistency models (linearizability, serializability, snapshot...

Distributed SystemsData ReplicationCAP TheoremArchitecture
Nov 29, 2025

Complete Git Commit Message Guide

10 min read

A comprehensive guide to writing professional Git commit messages following conventional commits specification. Learn commit types, structure, best practices, and tools for better ...

GitVersion ControlBest PracticesConventional Commits
Nov 8, 2025

Building Kemuko Support: An AI Agent for EdTech with Mastra

20 min read

How I built Kemuko Support - an AI-powered customer support agent using Mastra that helps learners with course progress, assists instructors with analytics, handles billing, and es...

MastraAIEdTechCustomer Support
Nov 1, 2025

Building Intelligent Workflows: Integrating Mastra A2A Protocol with Telex

12 min read

Learn how to integrate Mastra's Agent-to-Agent (A2A) protocol with Telex to build intelligent, interconnected AI workflows. A complete guide from development to deployment.

AIMastraA2A ProtocolTelex
Oct 26, 2025

Building A2A Protocol Agents with Python and FastAPI

15 min read

A comprehensive guide to implementing the Agent-to-Agent (A2A) protocol using Python and FastAPI. Learn how to build production-ready AI agents with JSON-RPC 2.0 communication.

PythonFastAPIA2A ProtocolAI
Oct 26, 2025

What is A2A? Understanding the Agent-to-Agent Protocol

8 min read

An introduction to the Agent-to-Agent (A2A) protocol - the standardized communication layer revolutionizing how AI agents interact across platforms. Learn the fundamentals, benefit...

A2A ProtocolAIAgent CommunicationJSON-RPC
Oct 20, 2025