Skip to content
Lokesh Jaiswal | Insights
  • Articles
  • About
  • RSS
  • Subscribe

Topic

Scalable AI architecture

The infrastructure underneath AI features: retrieval, vector stores, caching, sharding and latency budgets. Each piece works through the arithmetic and the failure modes before the tooling.

  • Tenant isolation in a vector database is an authorisation decision, not a filter

    A tenant filter is one forgotten line away from a breach. How to choose vector isolation by what a bug would expose, and prove it holds.

    Scalable AI architecture · 10 November 2026 · 9 min read

  • Rate limit what the provider counts, not what the user sends

    Most LLM products rate-limit requests. The provider meters tokens, by its own rule, across every tenant. Limit what it counts, or your users pay.

    Scalable AI architecture · 23 October 2026 · 9 min read

  • LLM retry strategy: why a retry is a purchase, not a free second chance

    Retries suit cheap calls. With an LLM downstream, each attempt is a purchase. How to budget retries in money and time, and who should own the number.

    Scalable AI architecture · 9 October 2026 · 11 min read

  • Vector database selection: pgvector vs dedicated vector stores, with real latency budgets

    pgvector or a dedicated vector store? A practitioner's method: build the latency budget first, size the index honestly, then let the numbers choose.

    Scalable AI architecture · 3 October 2026 · 8 min read

  • RAG evaluation: fix retrieval before you blame the model

    Most RAG failures are retrieval failures. A practical playbook for retrieval evaluation: golden sets, recall@k, chunking tests and drift monitoring.

    Scalable AI architecture · 1 October 2026 · 7 min read

  • Embedding model migration: re-indexing 10M+ vectors without downtime

    A better embedding model is only an upgrade if you can install it. The sizing, dual-write and cutover plan for re-indexing 10M+ vectors with no downtime.

    Scalable AI architecture · 1 October 2026 · 9 min read

  • Redis sharding strategy: when a single node stops being the answer

    Most Redis sharding goes wrong before the first shard exists. Diagnose the real ceiling, design keys around hash slots, and reshard without a p99 spike.

    Scalable AI architecture · 1 October 2026 · 10 min read

  • All articles
  • Agentic AI in production
  • Scalable AI architecture
  • EdTech and assessment infrastructure
  • Flutter and mobile at scale
  • Founder and operator lessons
  • Product and the future of technology

Where technology, product, AI and entrepreneurship converge.

Insights from Lokesh Jaiswal, technology leader and entrepreneur.

  • Agentic AI in production
  • Scalable AI architecture
  • EdTech and assessment infrastructure
  • Flutter and mobile at scale
  • Founder and operator lessons
  • Product and the future of technology
  • About
  • Privacy
  • New articles by email
  • RSS feed

© 2026 Lokesh Jaiswal

New articles by email

One email whenever Lokesh publishes a new article on AI, engineering, product or building companies. You will be asked to confirm your address first.