Technical Architecture Documentation: Formal developer manual and infrastructure specifications for Ruhanir ERP.
Engineering Manual
System Architecture & Developer Reference
Technical specifications for database isolation, edge routing, industry schemas, and authentication models.
Core Architecture
Ruhanir ERP Platform Overview
Ruhanir ERP is a multi-tenant enterprise resource platform. It serves education, healthcare, retail, hospitality, gym, and professional brand organizations from a unified codebase while enforcing cryptographic tenant boundary separation at the database layer.
System Boundary Guarantees
- Database Partitioning: Relational tables partitioned by
tenant_idfor scoped queries. - Edge Routing: Cloudflare edge runtime rewrites subdomains (
slug.workbookbd.com) to dedicated tenant views. - Stateless Authentication: Cryptographically signed JWT tokens carrying user role and tenant context.
High-Level Request Lifecycle
Every incoming HTTP request resolves the tenant identity from either the subdomain or verified custom domain before executing any business logic.
text
1. Client Request: https://ironforge.workbookbd.com/ 2. Edge Router: Extracts slug 'ironforge' from Host header 3. Database Lookup: Validates active tenant in public.tenants_public 4. Tenant Context: Resolves session tenant_id for relational data query 5. Response: Renders GymLanding with scoped IronForge data only
