← Back to Projects

School Management System — Hybrid Monolith & Microservice Portal

School Management System — Hybrid Monolith & Microservice Portal

A production-grade, enterprise School Management Platform engineered with a Hybrid Architecture: a high-throughput Modular Monolith (Node.js/Express + MongoDB Atlas) powering academic operations for Teachers, Guardians, and Students, coupled with an autonomous Payment Microservice (Prisma ORM + Neon PostgreSQL) communicating asynchronously via RabbitMQ (CloudAMQP) and Stripe Webhooks. Built with React 19, Vite, and TanStack Query with strict RBAC access controls.

Main Technology Stack

React 19Node.jsExpress.jsRabbitMQ (CloudAMQP)Neon PostgreSQLMongoDB AtlasPrisma ORMStripe API & WebhooksTanStack Query v5Cloudinary SDKNodemailer (SMTP)Tailwind CSS

Key Contributions

  • Implemented a Hybrid Microservice System combining a high-throughput Modular Monolith for school operations with an autonomous Payment Microservice following the Database-per-Service pattern.
  • Engineered an Event-Driven messaging pipeline using RabbitMQ (CloudAMQP) topic exchanges (`school.events`) with durable queues and manual ACK to publish and process `payment.completed` events with zero data loss on service reconnects.
  • Built deeply nested academic structures (multi-class timetables, daily roll calls, syllabus materials) alongside Neon Serverless PostgreSQL with Prisma ORM for strict ACID financial ledgers.
  • Developed a robust Stripe billing engine supporting Hosted Checkout sessions, automated invoice generation, raw webhook signature verification, and transactional HTML receipt emails via SMTP.
  • Constructed a unified role-driven client in React 19 + Vite serving 3 distinct portals (Teacher, Guardian, Student) backed by TanStack Query server-state caching, capability-based route guards, and a schema-normalizing Data Adapter Layer.
  • Delivered comprehensive academic modules including interactive teacher gradebooks with term GPA transcripts, daily roll call presence rings, homework assignment & submission workflows, and an incident reporting system with Cloudinary multipart uploads.

Challenges Faced

  • Ensuring eventual data consistency between the Payment Microservice (PostgreSQL) and Core Monolith (MongoDB) during network partitions. Solved by implementing an idempotent RabbitMQ consumer with durable queue persistence that retries and self-heals upon reconnection.
  • Preserving raw binary request body buffers for Stripe cryptographic webhook signature verification without breaking standard JSON and multipart/form-data body parsing across monolithic domain routes.
  • Decoupling complex multi-role client permissions across Teachers, Guardians, and Students without duplicating UI code. Solved by building a centralized capability configuration (`roles.js`) consumed via custom React hooks.

Potential Improvements and Future Plans

  • Introduce Redis distributed caching for session management and high-frequency class timetable lookups to reduce primary database load by up to 65% during morning peak hours.
  • Implement automated end-to-end regression testing with Playwright covering multi-role login flows and Stripe webhook settlement test scenarios.
  • Deploy Docker containerization with Kubernetes orchestration and Prometheus/Grafana metrics monitoring for production observability.