Techtiz
Multi-tenant NestJS backend
THE PROBLEMA growing set of client applications had to run on one backend without their data ever mixing, and without every feature needing to know which client it was serving. Support also ran through a third-party ticketing service that could not be allowed to become a single point of failure.
WHAT I BUILT
- Architected a multi-tenant NestJS backend with a dedicated database per client — isolating each client's data, improving security and performance, and keeping a growing set of client applications manageable
- Resolved the client on every incoming request and injected that client's database connection at request-processing time through NestJS dependency injection, so each request ran against the correct database and schema with no tenant logic in application code
- Built a ticket support system around a third-party service acting as a centralised management portal, with fallback mechanisms so two-way client–management communication stayed uninterrupted when the provider did not
- NestJS
- Node.js
- MongoDB
- Multi-tenant architecture