Architecting multi-tenant systems for decades of scale
Staykar Resort was born from a straightforward conviction: multi-tenant infrastructure shouldn't require compromising on data boundary security, operational simplicity, or cloud independence.

Java 21 Loom
Per cluster node
Zero-egress R2
Rolling deploys
Engineered with Zero Assumptions
Most modern SaaS stacks are glued together with brittle multi-tenancy hacks - injecting raw SQL strings, running un-indexed tenant filters, or paying astronomical egress charges to hyperscalers.

Principles of Clean Multi-Tenancy
How we solved data leakage, database thread starvation, proprietary cloud lock-in, and regulatory tax compliance without multiplying infrastructure complexity.
Logical Isolation Without Connection Bloat
Traditional multi-tenant setups spawn separate database connection pools per tenant, causing database exhaustion at 200 tenants. We engineered automated document-level criteria wrapping in MongoDB 7.0 that guarantees 100% logical isolation on a single, highly-indexed cluster.
Virtual Threads on Java 21
By leveraging Project Loom in Java 21 and Spring Boot 3.3, our API gateway runs on lightweight virtual threads rather than OS carrier threads. A single worker node handles 100,000+ concurrent long-lived client connections with a memory footprint under 140MB.
Zero-Egress Pluggable Cloud Storage
Vendor lock-in on cloud storage drains SaaS margins. Our pluggable Storage SPI allows instant configuration switches between AWS S3, Cloudflare R2 (zero egress fees), and local disk with a single environment variable change.
First-Class Indian B2B Compliance
Most global platforms treat Indian tax and payment infrastructure as an afterthought. Staykar Resort provides native Razorpay AutoPay recurring e-mandates, automated 18% CGST/SGST calculations, and official SAC 998315 sequential tax invoices generated in real time.
Engineering Milestones
Key breakthroughs shaping the Staykar Resort multi-tenant operating system.
Core Architecture & Virtual Threads Engine
Initial prototype achieving 100k concurrent WebSocket connections on Java 21 Project Loom with sub-10ms response latency.
MongoDB Multi-Tenancy & Pluggable Storage
Deployed document-scoped criteria wrapping with zero connection pool bloat and full Cloudflare R2 zero-egress integration.
Super Admin Console & Automated GST Billing
Released independent Super Admin subdomain portal, automated Razorpay AutoPay lifecycle, and B2B tax invoice generator.