The story of Shaktiman Agro Agency started in an unexpected way while I was deep in development on Ludo Social (my offline multiplayer mobile game). During closed testing, a neighbor who had been testing my game was sitting with some officials from Shaktiman Agro Agency. He started talking about the app and praised the engineering and smooth gameplay.
One of the officials overheard the conversation, asked for more details, and reached out to me. He asked if I would be comfortable building a full-scale website and digital management portal for their authorized dealership. I told him I could absolutely build it. They invited me to their Karnal showroom to inspect their machinery lines, discuss customer touchpoints, and gather technical requirements.
They needed a complete platform: a rich equipment catalog, crop-specific mechanization guides, lead enquiry capture, media galleries, and an easy administrative back-office to manage inventory without touching code.
When we discussed hosting and servers, the client was completely non-technical and estimated their traffic at roughly 10 visitors per hour. My initial thought was to spin up a free Node/Express backend on Render. But Render's free tier spins down after 15 minutes of inactivity.
While you can set up cron jobs to ping a sleeping server, this was a commercial business platform. Having a potential customer wait 45 seconds for a cold backend to boot - or worse, see a 502 error - is completely unacceptable for real-world software.
That pushed me to rethink the architecture entirely. Instead of maintaining a separate API backend, I consolidated everything into Next.js 16 App Router using Server Actions ('use server'). Server Actions gave me direct RPC function calls from forms without exposing public REST endpoints, with strict Zod validation, automatic TypeScript end-to-end typing, and zero server spin-down issues.
For data storage, I paired Neon Serverless PostgreSQL with Prisma ORM and Cloudinary for media delivery. But serverless PostgreSQL on Neon has its own sleep cycle: it idles after 5 minutes to save compute units.
To solve this, I designed a two-tiered caching and connection strategy:
SELECT 1) executes to wake the WebSocket connection pool in milliseconds before concurrent queries run.revalidatePath() and revalidateTag(). The Edge cache updates instantly.When farmers browse the catalog, 100% of pages are served directly from Vercel's global Edge CDN in under 50ms with zero database queries. The only time a live database write happens is when a customer submits a lead enquiry. The result? Enterprise-grade speed with literally 0₹/month in infrastructure costs - the client only pays for their domain name.
Real-world local businesses live and die by search visibility. I treated SEO as a core engineering requirement rather than an afterthought. I implemented comprehensive Schema.org JSON-LD microdata across every route:
LocalBusiness schema with exact geographic coordinates (29.6918° N, 76.9956° E) for Namastey Chowk, Karnal.Product and FAQPage schemas for Google Search rich snippet accordions.BreadcrumbList and automated XML sitemaps generated dynamically at request time.Within 24 hours of publishing and submitting the sitemap to Google Search Console, the website indexed and ranked #1 on Google for branded search queries ('Shaktiman Agro Agency Karnal'), outranking generic directory scrapers and establishing immediate digital authority for the dealer.
Building and shipping this project gave me a striking perspective on software distribution. I architected, built, tested, deployed, indexed on Google, and handed over Shaktiman Agro Agency to my first paying client in under 7 days.
Contrast that with building a mobile game like Ludo Social: on the Google Play Console, you are required to run a 14-day closed test with at least 12 testers, wait through a multi-day manual review process, and battle App Store Optimization where search ranking is heavily tied to download velocity and user ratings rather than pure technical markup.
The web gave me instant distribution and rapid feedback. Shaktiman Agro Agency proved that applying disciplined systems architecture - even on a small commercial website - can deliver immense real-world value with zero maintenance overhead.