For Startups

Playbooks, decision frameworks, and case studies written for startups.

Fintech technology
Startups Fintech

Idempotent Webhook Handlers: Stop Processing Events Twice

If your Stripe or Razorpay webhook occasionally double-credits a wallet or creates duplicate orders, the fix isn't deduplicating HTTP requests — it's making the database write itself a no-op on replay. Here's a runnable tutorial that shows how to do it correctly under concurrent retries.

Jul 31, 2026 11 min read
Logistics technology
Startups Logistics

How Vahak Onboarded 800K Trucks Without a Sales Team

Vahak's supply-side unlock wasn't a slicker signup flow — it was rebuilding trust and verification to run asynchronously, so a truck owner could transact before a single document was fully verified. Here's the architectural call and what generalizes.

Jul 30, 2026 12 min read
Fintech technology
Startups Fintech

GST Compliance Cheatsheet for SaaS Products Serving Indian SMBs

A reference sheet for SaaS founders whose billing engine treats GST as one flat tax field. Covers the four axes GST branches on — and the invoice fields that make or break your customers' input tax credit claims.

Jul 27, 2026 8 min read
SaaS technology
Startups SaaS

Rate-Limit LLM API Calls Per Tenant Without Dropping Requests

One noisy tenant is eating your shared OpenAI quota and 429-ing everyone else. Here is a runnable per-tenant token-bucket limiter in Redis that meters by estimated tokens and queues excess requests instead of dropping them.

Jul 26, 2026 11 min read
SaaS technology
Startups SaaS

Cache LLM Embeddings in Redis Without Stale Vector Drift

Caching OpenAI embeddings in Redis cuts cost, but naive keys leave stale vectors polluting your retrieval layer. Here's a content-addressed cache pattern that self-invalidates on every edit — with runnable code.

Jul 20, 2026 10 min read
Fintech technology
Startups Fintech

How GimBooks Scaled GST Filing to 3M Users Without a DBA

GimBooks handled normal load fine but crashed every GST deadline cycle. Here's the architectural call that fixed it — and why horizontal scaling alone would have made the problem worse.

Jul 18, 2026 12 min read
SaaS technology
Startups SaaS

Supabase vs. PlanetScale vs. Neon: Pick the Right Serverless DB

Most Supabase vs PlanetScale vs Neon comparisons benchmark cold starts on toy workloads. Here's how each one actually behaves under multi-tenant SaaS load — and which choice will force you to re-platform when your first enterprise customer lands.

Jul 18, 2026 10 min read
SaaS technology
Startups SaaS

Stream LLM Responses to the Browser Without Losing State

Streaming LLM output to the browser looks trivial until you need per-user state, accurate token billing, and safe recovery when the client drops. Here is a working pattern with FastAPI, SSE, and React that gets all three right.

Jul 17, 2026 11 min read
Logistics & Supply Chain technology
Startups Logistics & Supply Chain

How Vahak Onboarded 800K Trucks Without Burning the Database

Vahak's onboarding pipeline scaled from hundreds to hundreds of thousands of trucks without breaking live matching queries. The unlock wasn't sharding or caching — it was separating write and read paths at the data model level.

Jul 15, 2026 12 min read
SaaS technology
Startups SaaS

Rate-Limit LLM API Calls Across Workers Without a Queue

Your OpenAI feature works fine on one worker and dies on four. Here's how to build a distributed token-bucket limiter in Redis with an atomic Lua script — no queue, no broker, no rewrites.

Jul 14, 2026 10 min read
SaaS technology
Startups SaaS

Stream LLM Responses to a React Frontend Without Melting

Your ChatGPT-style feature stalls for 6 seconds before rendering a single token. Here is how to stream LLM responses to React properly — with auth, aborts, and partial JSON that does not double-render on flaky networks.

Jul 7, 2026 11 min read
Fintech technology
Startups Fintech

What Is Idempotency? Stop Charging Customers Twice

A double-charge after a mobile timeout is almost always a retry bug, not a payment gateway bug. Here's how idempotency keys work, and why the fix lives in your client — not your server.

Jul 7, 2026 8 min read