S
SankalpRaiGambhir
Sankalp Rai GambhirFullstack & AI Engineer
HomeSelected WorkEngineering InsightsProduction-Ready PatternsSkillsContact
Back to Home

Engineering Insights

Articles and insights on software engineering, architecture, and technology.

5Articles
Postgres query plan diagram showing an index scan replacing a full table scan
Aug 19, 2026
·
8 min read

The Client Thought They'd Outgrown Postgres. They Hadn't.

A client was sure they'd outgrown Postgres and wanted more pods, replicas, and shards. The real problems were one missing index and a connection storm — two-day fixes, not a re-architecture.
PostgreSQLDatabase PerformanceBackend
Agent control-flow diagram showing a runaway tool-call loop bounded by circuit breakers
Aug 7, 2026
·
8 min read

Our AI Agent Made 2,000 Tool Calls to Do Nothing

What an autonomous agent taught me about cost, control flow, and why reliability isn't a model-intelligence problem.
AI AgentsLangGraphReliability Engineering
LLM cost optimization dashboard showing token usage and spend trending down
Jul 25, 2026
·
11 min read

Our LLM Bill Hit $14K a Month. I Cut It 70% — Without Cutting Quality

How instrumenting LLM spend, fixing prompt bloat, model routing, and safe caching cut a $14K/month AI bill by 70% without hurting quality.
LLMAI EngineeringCost Optimization
GraphQL schema diagram illustrating nested entity relationships
Jul 7, 2026
·
8 min read

GraphQL Didn't Remove Our API Complexity — It Exposed It

Key insights and best practices learned while building production GraphQL APIs
GraphQLAPI DesignBackend
RAG retrieval pipeline diagram showing chunking, vector search, and reranking stages
Jun 16, 2026
·
10 min read

Our RAG Chatbot Answered Confidently — From the Wrong Document

How scaling decisions around chunking, vector search, quantization, and reranking quietly made our production RAG system less accurate.
RAGVector SearchAI Engineering

Get Engineering Insights

Production post-mortems and engineering decisions on AI, backend systems, reliability, and cost. Get a short email when a new insight is published.

About

Sankalp Rai Gambhir

Fullstack & AI engineer helping growing teams ship production AI, backend systems, and full-stack products.

Worked with startups & enterprises

Contact

career.sankalp21@gmail.com

Remote-first

UK / EU / US overlap

Start a conversation

Quick Links

  • Selected Work
  • Engineering Insights
  • Production-Ready Patterns
  • Skills
  • Contact

Ways I Work

Scoped Build

A defined feature or platform, delivered from architecture through deployment.

Workstream Ownership

Senior-level ownership inside an existing team and delivery process.

Technical Spike / MVP

Validate the architecture and de-risk hard decisions before scaling.

© 2026 Sankalp Rai Gambhir. All rights reserved.

Privacy Policy

This site uses analytics cookies to understand how visitors use it. See the Privacy Policy for details.