Written Word

The Reading Room

Notes, reviews, and design choices regarding system architecture, event brokers, and developer experience.

Articles

Select a post to read the complete technical rationale, diagrams, and retrospective logs.

2026-05-029 min read
Backend

PostgreSQL index bloat and how we recovered in production

A post-mortem on how a write-heavy table choked database throughput and how we resolved it.

PostgreSQLDatabasePost-MortemPerformance
2026-04-187 min read
Backend

The fallacy of serverless DB connections

How serverless functions exhaust PostgreSQL connection limits and why pooling is mandatory.

ServerlessPostgreSQLPrismaAWS Lambda
2026-04-016 min read
Performance

How to shave 10 minutes off Docker builds in CI

Optimizing Docker layer caches to accelerate GitHub Actions delivery pipelines.

DockerCI/CDDevOpsDX
2026-03-247 min read
AI Infrastructure

Securing private microservices with Cloudflare Tunnels

Bypassing exposed firewall ports in favor of secure, outbound-only tunnel routing.

CloudflareSecurityDevOpsNetworking
2026-03-088 min read
Practice

Optimizing React Native bridge traffic for telemetry charts

How to avoid thread crashes when rendering high-frequency real-time charts.

React NativePerformanceMobileTelemetry
2026-02-158 min read
Backend

Preventing cache stampedes when keys expire

Using probabilistic early expiration to survive massive concurrency spikes.

RedisCachingSystem DesignBackend
2026-01-207 min read
AI Infrastructure

Running Hugging Face text classifiers directly in NestJS

A guide to local inference pipelines for sensitive text categorizations.

Hugging FaceNestJSAI AgentsBackend
2026-01-056 min read
AI Infrastructure

Building MCP servers for database context mapping

How to create custom tools that expose schemas securely to AI coder agents.

MCPAI AgentsPrismaDeveloper Tools
2025-11-128 min read
Backend

Debugging replica lag under write-heavy loads

How we resolved replication bottlenecks on a MongoDB dashboard database.

MongoDBDatabaseReplicationDevOps
2025-09-287 min read
Backend

When you actually need PGVector instead of dedicated databases

Why Postgres with PGVector is often better than Pincone or Milvus for semantic search.

PostgreSQLPGVectorVector DatabaseSemantic Search
2025-09-026 min read
Backend

Preventing duplicate transactions with API idempotency keys

How to design secure transaction boundaries in NestJS using Redis locks.

NestJSRedisAPIsSecurity
2025-07-207 min read
Performance

Setting up actionable alerts in AWS CloudWatch

How to reduce notification noise and monitor actual system health.

AWSCloudWatchDevOpsMonitoring
2026-06-128 min read
Backend

Event brokers: why your microservices should speak Kafka

Moving from REST calls to event-driven architectures with Kafka and NestJS.

KafkaMicroservicesNestJSSystem Design
2026-05-187 min read
AI Infrastructure

Local LLMs on edge nodes with Ollama and MCP

How to build secure, low-latency AI assistants inside your local network.

OllamaMCPAI AgentsSecurity
2026-03-188 min read
Engineering

Design systems are not component libraries

Why the most valuable thing your team can build is a vocabulary, not a component.

Design SystemsArchitectureFrontend
2026-02-047 min read
React

The quiet cost of client state

Most React apps are slow not because rendering is slow, but because state lives in the wrong place.

ReactState ManagementPerformance
2025-12-126 min read
Performance

Performance is a design decision

You cannot optimize your way out of a layout that was always going to be heavy.

PerformanceCore Web VitalsNext.js
2025-10-205 min read
Practice

Writing frontend for the engineer after you

The reader of your code is almost always someone who is not you. Write for them.

Codebase HealthMentorshipArchitecture
2025-08-027 min read
Accessibility

Accessibility is an architecture problem

If accessibility lives in tickets, you have already lost. It has to live in primitives.

AccessibilityDesign SystemsArchitecture
2025-06-145 min read
Design Engineering

Motion as a language, not decoration

Good motion makes a product easier to use. Bad motion is just expensive friction.

MotionUXFramer Motion
Navigation

Want to see how these theories were implemented in actual projects?