Back to Home

Engineering Notes

Thoughts on scalable systems, backend architecture, and production engineering.

2024-06-05

MongoDB Optimization: Indexes & Schema Design

Techniques for optimizing MongoDB performance for read-heavy applications, including TTL indexes, compound indexes, and efficient schema modeling.

MongoDBDatabasePerformanceBackend
Read Post
2024-05-18

AI Integration with Gemini API: Fallback Systems

How I designed a robust fallback system using the Gemini API when semantic search fails to yield high-confidence matches.

GeminiAISystem DesignNode.js
Read Post
2024-05-12

Semantic Search with Pinecone: A Deep Dive

How I achieved sub-50ms latency for nearest-neighbor semantic search across thousands of mathematical documents using Pinecone vector database.

PineconeVector DBSystem DesignNode.js
Read Post
2024-04-02

Why I Migrated from REST to gRPC for Internal Services

A deep dive into Protocol Buffers, multiplexing, and why gRPC dramatically improved our internal inter-service latency.

ArchitecturegRPCGoMicroservices
Read Post
2024-03-15

Scaling Node.js Microservices to 10k RPS

How I optimized an Express.js backend using Redis caching, worker threads, and PM2 cluster mode to handle massive traffic spikes.

BackendNode.jsScalingRedis
Read Post