Back to Blog
Engineering11 min read

How We Built a Multi-Tenant HMS for Indian Clinics

Abhi PandeySep 30, 2026

Direct answer

We run Clinizy Care on one shared MongoDB database with shared collections: every tenant-owned document carries a tenantId, and a Mongoose plugin injects that filter into every read, write, count and aggregation, failing closed when no tenant is in context. At ₹1,999 a month for a solo clinic, a database per tenant would cost and operate out of proportion; a strict, tested guard with tenant-first indexes fits the economics.

Technologies Covered

Multi-tenancyMongoDBMongooseNode.jsAsyncLocalStorageAWS

Written by

Abhi Pandey

Founder & CTO

Abhi Pandey is the Founder & CTO of Brynex Labs. He leads product and engineering for Clinizy Care, the hospital management software Brynex Labs builds and runs for India's clinics and nursing homes, and for the AI agents and SaaS platforms the studio builds for clients. He writes about multi-tenant SaaS architecture, applied AI engineering, and shipping reliable systems to production.