1. πŸš€ Getting Started
  2. πŸ—οΈ System Architecture
MudraHQ AppAdmin ConsoleGitHub
  • ⚑ MudraHQ Overview
  • ⚑ Quickstart Guide
  • πŸ—οΈ System Architecture

πŸ—οΈ System Architecture

In-depth overview of MudraHQ's distributed cloud infrastructure, microservices, and zero-cost cloud topology.

Loading documentation…

⚑ Quickstart Guide< Previous

Powered by heyo-docs

On this page

🌐 Cloud Infrastructure TopologyπŸ’» Frontend Client Stack⚑ Backend API ArchitectureπŸ”’ Zero-Cost Infrastructure Guarantee

MudraHQ is engineered as a high-throughput, fault-tolerant financial operating system designed for Indian retail enterprises. It achieves sub-50ms API response times while operating on a strictly $0.00 / zero-charge cloud infrastructure model.


🌐 Cloud Infrastructure Topology

The production deployment combines Cloudflare Edge Anycast network with an Oracle Cloud Always Free Ampere A1 ARM64 virtual machine:

text
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”β”‚                        MUDRAHQ DISTRIBUTED EDGE                        β”‚β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                    β”‚                                    β–Ό       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”‚   Cloudflare Anycast Global Edge (Universal SSL + WAF)   β”‚       β”‚   - mudrahq.tech (Primary React Native Mobile App)       β”‚       β”‚   - docs.mudrahq.tech (Heyo Documentation Site)          β”‚       β”‚   - Cloudflare Email Routing (support@mudrahq.tech)      β”‚       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                    β”‚                                    β–Ό       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”‚   Oracle Cloud Always Free VM (Ubuntu 24.04 LTS ARM64)   β”‚       β”‚   Ampere A1 (2 OCPUs, 12 GB RAM, 200 GB NVMe Storage)   β”‚       β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€       β”‚   β€’ Nginx 1.24 (Reverse Proxy + Let's Encrypt SSL)       β”‚       β”‚   β€’ PM2 Clustered API (2 Node.js v20.20.2 Workers)       β”‚       β”‚   β€’ Docker Engine (PostgreSQL 15 Container on Port 5432) β”‚       β”‚   β€’ Daily Encrypted SQLite/Postgres Backup Vault         β”‚       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ’» Frontend Client Stack

MudraHQ features a universal codebase delivering both native mobile and desktop browser parity:

  • Framework: React Native with Expo SDK 52.
  • Web Engine: Compiled via @expo/webpack-config / metro into an optimized Single Page Application (SPA).
  • UI & Aesthetics: React Native Paper Material Design 3, custom modern dark mode palettes, and Figtree/Inter typography.
  • Vector Icons: @expo/vector-icons featuring over 2,000 Material Design, Ionicons, and Feather symbols.
  • Thermal Paper Simulator: Canvas-based thermal paper receipts with authentic jagged-edge tearing simulation for retail counter validation.

⚑ Backend API Architecture

The backend REST API is built on high-concurrency Node.js microservices managed by PM2:

  • Process Management: PM2 Cluster Mode utilizing 2 parallel worker processes on Ampere A1 ARM64 OCPUs with automatic zero-downtime reloads.
  • Database & ORM: PostgreSQL 15 running in a tuned Docker container, mapped via Prisma ORM with declarative migrations and automated indexing.
  • Rate Limiting: Sliding-window rate limiter preventing brute-force attacks on /api/auth/login (maximum 5 attempts per IP with exponential backoff).
  • Security Middleware:
    • Strict 1MB JSON and URL-encoded payload limit.
    • OWASP Top 10 hardening (Helmet headers, strict CORS origin matching, XSS sanitization, SSRF protection).

πŸ”’ Zero-Cost Infrastructure Guarantee

MudraHQ operates permanently under strict $0.00 infrastructure rules:

LayerProviderFree Allowance Utilized
Compute VMOracle Cloud Always Free4 OCPUs / 24 GB RAM / 200 GB Storage (Zero cost forever)
Edge & DNSCloudflare Free TierUnlimited DDoS protection, Universal SSL, Anycast CDN
DocumentationCloudflare Pages / Workers100,000 free requests/day, unlimited static asset bandwidth
Transactional EmailCloudflare Routing + BrevoFree custom email routing + 300 SMTP transactional emails/day
DomainGitHub Student Pack.tech domain (mudrahq.tech) free registration