crafted.data
Long-form articles on databases, cloud and DevOps, and AI. Written from real systems, with the code included, by Naveen Chandra.

latest

AI
Fine-Tuning vs RAG vs Prompting: Which Fixes Which?
They aren't tiers on a power ladder. They're fixes for three different failure types, and naming the failure first mostly makes the choice for you.
Read the articleJSONB vs Separate Tables: When Normalisation Stops Paying
JSONB is one of the best reasons to pick Postgres, and one of the easiest places to park a modeling decision you don't want to make yet. The line between the two is crisper than most teams think.
Cloud & DevOpsServerless vs Containers: The Honest Cost Comparison
It isn't Lambda versus Fargate as products. It's billing per execution versus billing for provisioned capacity, and the variable that decides between them is duty cycle.
DatabasesRead Replicas vs Caching vs Both: The Decision Matrix
A replica adds capacity and a cache removes repeated work. Which one you need falls out of two questions about your traffic, and neither helps a primary that's bound by writes.
AIHow to Actually Evaluate an LLM in Production
Evaluating an LLM in production isn't a research problem. It's an engineering discipline, closer to regression testing and observability than to benchmarking.
DatabasesZero-Downtime Database Migrations: Patterns and Pitfalls
Zero-downtime migrations aren't a tool you buy or a flag you enable. They're a small set of patterns, applied with discipline, that let routine schema changes run at noon on a Tuesday.
Cloud & DevOpsAWS Services You're Paying For and Probably Don't Need
The instances aren't always the interesting part of an AWS bill. Cuttable spend often hides in defaults nobody chose: networking, log ingestion, cluster fees and resources billing while idle.
DatabasesIndexing Strategies: When Each Index Type Actually Pays Off
Postgres ships six built-in index types, and each one is a bet on a specific access pattern. Here's the question each one answers, where it stops, and how to audit the indexes you already have.
DatabasesWhen to Use Each AWS Database Service
The AWS console offers a managed database for every data shape. Treat it as a list of exceptions, not a menu: start on RDS Postgres and make every other engine earn its place with a measurement.
DatabasesDatabase Choices That Quietly Kill Your AWS Bill
Database spend on AWS doesn't need one dramatic mistake to hurt. It can leak through a dozen small defaults that looked reasonable on the day and never got a second look.
DatabasesWhy Your RAG System Is Actually a Search Problem
Swap the model, rewrite the prompt, pile on examples: many RAG fixes start at generation. The problem often lives in retrieval, which information-retrieval research has been working on since the 1950s.
DatabasesThe Real Cost of an LLM Call vs a SQL Query
They aren't interchangeable tools with slightly different price tags. One is metered per token and writes its answer one token at a time; the other runs on capacity you already pay for. That gap should usually decide which one you reach for.
DatabasesMost Teams Don't Need a Vector Database
Embeddings show up in a planning doc and a vector database appears on the diagram. Plenty of teams adding one don't have a vector problem yet. They have a Postgres instance and a reflex.
crafted.data
Get every new article, and the short versions too.
One email when a new deep-dive is out. Each article also gets a short video on Instagram.
