</>
Rayyan Baig
AI & Systems Engineer

Case Study: Multi-Tenant POS Module

Production Stable

A scalable, secure and multi-tenant POS system for pharmacies and retail chains.

Next.jsNode.jsMySQLDocker
SolutionIR POS
This Month
Dashboard
POS (Sales)
Inventory
Purchases
Expiry
Reports
Settings
Dashboard
Sales
PKR 1,248,500
Invoices
3,462
Items
12,560
Tenants
8
Throughput Trend
Status
92%
In Stock

System Architecture (High Level)

Tenants
(Store/Branch)
Next.js
(Frontend / SPA)
FastAPI
(API Services)
MySQL
(Multi-Tenant)
Redis
(Cache / Queue)

Key Results & Metrics

Concurrent Users
500+
Daily Transactions
15,000+
Data Load Tested
5M+ Records
Avg. API Response
~120 ms
System Uptime
99.9%

Database Schema (Core Entities)

tenants
(id, name, plan, status)
users
(id, tenant_id, role)
products
(id, tenant_id, sku)
sales
(id, tenant_id, total)

Implementation Highlights

  • Multi-tenant data isolation (tenant_id).
  • Role-based access control (RBAC).
  • Inventory with batch & expiry tracking.
  • High performance queries (indexed).
  • Production deployment (Docker + Nginx).

Load Test & Stability

Test ScenarioLoadResult
Concurrent Users500✓ Passed
Create Sale (TPS)120/sec✓ Passed
Bulk Import (Items)100K✓ Passed
DB Query (Avg)~35 ms✓ Passed

Case Study: Clinic Module (EMR, OPD & Appointments)

A complete clinic management module with patient (EMR), OPD, appointments and pharmacy integration.

SolutionIR Clinic
Dashboard
Patients
Appointments
OPD
Prescriptions
Patients EMR+ New Patient
MRN-4091 • Ayesha K.OPD Checked
MRN-4092 • Bilal R.Rx Sent
MRN-4093 • Sara M.Waiting

Key Features

In Progress
  • Patient EMR & History
  • OPD & Consultation
  • Appointments & Scheduling
  • Pharmacy Integration
Build70%