EduPulse Technical Architecture
🎯 The Winning Formula
Node.js (Developer Velocity) + Go (Reliability) + Python (AI Capabilities)
📊 Technology Stack Overview
| Layer | Technology | Version | Purpose |
|---|---|---|---|
| Frontend | Next.js | 15.x | SSR, React Server Components |
| Frontend | TypeScript | 5.7.x | Type safety |
| Frontend | Tailwind CSS | 3.x | Styling |
| Frontend | shadcn/ui | Latest | UI components |
| Backend (Primary) | Node.js | 22 LTS | CRUD services |
| Backend (Primary) | NestJS | 10.x | Framework |
| Backend (High-Perf) | Go | 1.22+ | Concurrent services |
| Backend (AI) | Python | 3.12.x | AI/ML services |
| Backend (AI) | FastAPI | 0.115+ | API framework |
| Database | PostgreSQL | 16.x | Primary database |
| Cache | Redis | 7.4.x | Caching, queues |
| Vector DB | Qdrant | Latest | AI embeddings |
| Storage | AWS S3 | - | Documents |
| AI Provider | Claude API | Latest | AI features |
🏗️ Service Architecture
📋 Service Distribution by Language
Node.js/TypeScript (NestJS) - 60% of codebase
Best for: CRUD-heavy, UI-backed services, rapid development
| Service | EPICs | Responsibility |
|---|---|---|
| Auth Service | EPIC-2 | Cognito integration, JWT, sessions |
| SIS Module | EPIC-3 | Student CRUD, guardians, documents |
| Admission Portal | EPIC-3 | Public portal, AI chatbot UI |
| Fee Management | EPIC-4 | Invoices, payment tracking |
| HR Module | EPIC-5 | Staff management, payroll |
| Asset Management | EPIC-10 | Inventory, lab booking |
| Wellness Portal | EPIC-11 | Health records, counseling |
| Alumni Bridge | EPIC-13 | Alumni network, events |
Golang - 25% of codebase
Best for: High-concurrency, reliability-critical, real-time
| Service | EPICs | Responsibility |
|---|---|---|
| Attendance Engine | EPIC-3, 5 | Biometric sync, bulk processing |
| Finance Engine | EPIC-4 | Double-entry ledger, transactions |
| Notification Dispatcher | All | SMS, email, push (100K+/day) |
| Real-time Sync | All | WebSocket connections |
| Transport Tracker | EPIC-12 | GPS processing, geofencing |
| Event Sourcing | All | Audit trail, compliance |
Python (FastAPI) - 15% of codebase
Best for: AI/ML, Claude integration, data processing
| Service | EPICs | Responsibility |
|---|---|---|
| AI Orchestrator | EPIC-6 | LangChain, prompt management |
| Board Exam Predictor | EPIC-8 | ML pipeline, predictions |
| AI Tutor | EPIC-9 | RAG, conversation, tutoring |
| Doubt Snap | EPIC-9 | OCR, image analysis |
| Question Analyzer | EPIC-7 | PDF extraction, classification |
| Assessment Engine | EPIC-7 | Adaptive testing, analytics |
🔗 EPIC to Service Mapping
| EPIC | Primary Language | Services |
|---|---|---|
| EPIC-1: Infrastructure | IaC (CDK) | All foundational |
| EPIC-2: Identity & DPDPA | Node.js | Auth, Encryption, Audit |
| EPIC-3: Smart SIS | Node.js + Python | SIS, Admission Chatbot |
| EPIC-4: Fee Management | Node.js + Go | Fee API, Finance Engine |
| EPIC-5: HR Management | Node.js + Go | HR API, Attendance Engine |
| EPIC-6: AI Assistant | Python | AI Orchestrator |
| EPIC-7: Assessment | Node.js + Python | Assessment API, Analyzer |
| EPIC-8: Exam Predictor | Python | Predictor Service |
| EPIC-9: AI Tutor | Python | Tutor, Doubt Snap |
| EPIC-10: Assets | Node.js | Asset Management |
| EPIC-11: Wellness | Node.js | Wellness Portal |
| EPIC-12: Transport | Go | Tracker, Geofencing |
| EPIC-13: Alumni | Node.js | Alumni Network |
🔄 Inter-Service Communication
Synchronous (REST/gRPC)
- User-facing APIs (low latency)
- Auth validation
- Real-time data fetches
Asynchronous (Message Queue)
- Notifications (SMS, Email, Push)
- Bulk operations
- AI processing (non-blocking)
- Event sourcing
📈 Scaling Strategy
| Phase | Users | Architecture |
|---|---|---|
| Phase 1 | 0-10K | Monorepo, shared DB |
| Phase 2 | 10K-100K | Service split, read replicas |
| Phase 3 | 100K-500K | Full microservices, sharding |
| Phase 4 | 500K+ | Multi-region, CQRS |