HRMS Backend Platform
Multi-tenant HR management backend platform for employee lifecycle, HR workflows, documents, tasks, and real-time collaboration.
Problem Statement
The platform was engineered to centralize core enterprise HR operations that were previously fragmented across manual spreadsheets and disparate tools. It delivers a unified multi-tenant backend supporting employee lifecycle tracking, onboarding, attendance, leave requests, task boards, company document distribution, and real-time company announcements across employees, department managers, HR administrators, and tenant owners.
Role & Engineering Leadership
System Architecture
The backend is a REST API-first Node.js and TypeScript application built with Express.js, structured into domain routers, service layers, Mongoose models, and security middleware. Multi-tenancy is enforced at the database level with company-scoped queries and tenant validation middleware to guarantee strict data isolation. Socket.io provides real-time event delivery through company-isolated namespaces, while AWS S3 handles secure document storage using pre-signed URLs.
Client Requests (Web / Mobile)
│
▼
Nginx Reverse Proxy / SSL Termination
│
▼
Express.js REST API Layer (Node.js & TypeScript)
├── Security: Helmet, CORS, Rate Limiting
├── Authentication: JWT Access & Refresh Token Middleware
└── Authorization: Multi-Tenant Tenant Guard & RBAC Middleware
│
├── Domain Services Layer
│ ├── Employee Lifecycle & Onboarding Workflows
│ ├── Attendance & Leave Management
│ ├── Task Management (Kanban Boards & Sprints)
│ └── HR Services: Room Booking, Referrals, Announcements
│
├── Persistence & Caching
│ ├── MongoDB / Mongoose (Company-Isolated Schemas)
│ └── Redis Cache (User Sessions & Fast State Lookup)
│
├── Real-Time Layer: Socket.io (Company-Specific Namespaces)
├── Document Pipeline: AWS S3 with Expiring Signed URLs
└── Background Engine: Workerpool & PM2 Master Cron SchedulingCore Features & Modules
Technical Challenges & Engineering Solutions
process.env.pm_id === '0'), avoiding race conditions in email digests.workerpool worker threads, keeping the primary Node.js event loop unblocked.Impact & Verification Status
Stack