available · karachi (utc+5) · remote & onsite

The backend is the product no one sees. I keep it fast, reliable, and hard to break.

Senior backend engineer with 5+ years building multi-tenant B2B SaaS. I own the scheduling engines, async pipelines, and caching layers that hold up when the request count climbs and the SLA doesn't move.

Python · Django · DRF · Celery · Redis · PostgreSQL · AWS

request lifecyclelive
client api cache queue db
268+
URL patterns owned
32
DRF ViewSets
~11
async job pipelines
5yr
shipping to prod
/work

Selected work

3 roles · 2020 → now
Diya Interactive Karachi, PK Jun 2023 – Present
Senior Software Engineer  ·  ex-Software Engineer  ·  security workforce SaaS
  • Owned ~11 backend modules across 12–15 features: scheduling, time & attendance, SIA compliance, invoicing, payroll, biometric auth, and real-time officer geolocation.
  • Worked a large API surface: 268+ Django URL patterns and 32 DRF router ViewSets, plus auto-generated CRUD and custom-action routes.
  • Built and maintained ~11 Redis/Celery scheduled jobs plus on-demand tasks: 30–60s attendance polling, auto-checkout, license-expiry, compliance, and SIA sync.
  • Refactored the check-call notification engine onto a proper scheduler with is_latest filtering and select_related, killing duplicate firing and N+1 patterns across growing patrol backlogs.
  • Shipped async bulk shift-scheduling generating up to 1,000 tiles per batch with all-or-nothing transactions and Redis-backed progress polling.
  • Moved CSV imports and offer processing to Celery, which eliminated request-timeout failures on large uploads.
  • Designed signal-driven cache invalidation for hot officer/shift reads; wrote a pre-deploy script that stopped crashes during vertical scaling. CI/CD on Elastic Beanstalk + GitHub Actions + S3/CloudFront, fortnightly cadence. Mentored 2 junior engineers.
KNYSYS, LLC Karachi, PK Mar 2021 – May 2023
Associate Software Developer  ·  ex-Junior Software Developer
  • Built and maintained Python/Django backends for distributed business workflows, API-driven apps, scheduled tasks, and automation.
  • Designed REST APIs, database integrations, and Celery/Redis async workflows to improve throughput, background execution, and fault tolerance.
  • Customized and extended large-scale platforms including Open edX: backend workflows, platform config, and integrations across AWS and Azure environments.
Bitrupt Karachi, PK Feb 2020 – May 2020
Full Stack Developer Intern
  • Built React and React Native features and integrated backend services with Firebase and SQLite in an agile team.
/systems

Systems I've shipped

problem → approach → outcome
Real-time ops
Diya Interactive
Sr. Backend Engineer · 2023–now
DjangoDRFRedisCeleryAWS RDSmobile + web

Security workforce management platform

Context

A multi-tenant SaaS that schedules, tracks, and reports on security officers across sites, with the same data live on both a web console and an officer mobile app.

Approach
  • Role-based access control for officers, site managers, and admins, secured with token auth.
  • Redis caching and query optimization so scheduling, notifications, and reports reflect instantly across web and mobile.
  • Load balancing to absorb heavy traffic during peak check-in / check-out windows.
Scope

Real-time scheduling, notifications, report generation, in-app messaging, leave management, and a vetted officer sign-up flow: the operational backbone used daily.

10,000+ users
KNYSYS, LLC
Assoc. Software Developer · 2022–2023
DjangoDockerAzure VMSSMySQLMongoDBMemcache

Scaling a Django platform past 10k users

Problem

A Django application was hitting performance bottlenecks as it grew past 10,000 users. The existing infrastructure couldn't keep up with demand.

Approach
  • Re-architected into distributed services using Docker containers for modularity.
  • Azure VMSS for dynamic scaling, bringing machines up only when traffic demanded it.
  • Separated MySQL, MongoDB, and Memcache onto dedicated servers to isolate load.
Outcome

Handled the larger load with high availability and, because scaling was demand-driven, cut operational cost by running only the capacity actually needed.

Multi-tenant
KNYSYS, LLC
Software Developer · 2021–2022
Open edXPythonmulti-tenantOTP auth

Open edX as a multi-tenant SaaS

Goal

Turn Open edX into a SaaS platform where multiple organizations could run their own uniquely branded learning environments, with stronger login security.

Approach
  • Modified the core LMS for a multi-tenant structure with per-organization themes and branding.
  • Added OTP-based login for an extra layer of security on sensitive institutional data.
  • Let organizations onboard and deploy without managing any backend infrastructure.
Outcome

Each organization got a personalized, secure, self-serve LMS, making the platform far easier to scale to new customers.

/fixes

Fixed AI slop

AI-generated code · measured before / after

Both of these were generated wholesale by AI and shipped without verification. Here's what was actually broken, and what it took to make them fast and correct.

perf
41×faster

Pattern-based bulk schedule generator

Found The AI-written generator re-validated licenses, compliance, leave, and working-time rules inside a per-date loop and wrote rows one at a time, so database queries grew linearly with the number of schedules created.

Fixed Hoisted the invariant checks out of the loop and answered them from a single prefetch in memory, then batched writes with bulk_create, verifying identical output against the original with differential, stress, and fault-injection harnesses.

8,87953 queries 12,725ms311ms O(n)O(1) 3 latent bugs fixed
correctness
18/18checks pass

Shared monthly session cap

Found The generated cap check ran at the wrong scope (one provider–client pair at a time instead of the whole account), so the shared monthly limit wasn't enforced on future bookings and cancelled sessions weren't excluded, letting an over-cap session slip through repeatedly.

Fixed Switched the check to the live account-wide count of active sessions, excluded cancellations, closed a race where two simultaneous bookings could both pass, and hardened the monthly reset against a single bad record.

wrong scopeaccount-wide raceserialized verified on real data
/capabilities

What I own

where the reliability lives
01

API architecture

Multi-tenant REST design at scale: DRF ViewSets, JWT auth, versioned routes, and a large URL surface kept coherent as features multiply.

02

Async & scheduling

Celery + Redis pipelines for polling, bulk generation, and long-running jobs, moving work off the request path so timeouts stop happening.

03

Caching & query perf

Signal-driven cache invalidation, select_related/prefetch, and N+1 elimination on hot reads that carry the most traffic.

04

Real-time backends

WebSockets, Server-Sent Events, and Redis Pub/Sub for live attendance, geolocation, and status feeds.

05

Cloud & CI/CD

AWS EC2, RDS, S3, Lambda, CloudFront and Elastic Beanstalk with GitHub Actions pipelines and safe, repeatable deploys.

06

Production reliability

Pre-deploy safeguards, staged release cadence, backend tests, and PR review, keeping dev, staging, and prod steady.

/projects

Things I built for the fun of it

side work
biometric auth

Facial Recognition Auth

A FastAPI prototype for face-based login: user registration, face encoding, and a full encode-and-match flow as a proof of concept for computer-vision-assisted auth.

FastAPI · face_recognition · Python
full stack

Therapy CRUD App

A healthcare-style app with DRF APIs, a React frontend, JWT auth, and role-based patient/counselor workflows for users, appointments, and therapy operations.

Django REST · React · JWT
desktop utility

Images → PDF

A Python desktop tool that compresses a directory of images into a single PDF under a target size limit, packaged with PyInstaller for one-click use.

Python · Tkinter · PyInstaller
/stack

The toolkit

day-to-day
LanguagesPython · JavaScript
BackendDjango · DRF · FastAPI · Flask · REST · WebSockets · SSE
Async / cacheCelery · Redis · Redis Pub/Sub · cache invalidation
DatabasesPostgreSQL · MySQL · MongoDB · DynamoDB · Firebase RTDB
CloudAWS (EC2 · S3 · RDS · Lambda · EB · CloudFront) · Azure · GCP
DevOpsDocker · GitHub Actions · CI/CD · Linux
ArchitectureMulti-tenant SaaS · distributed systems · SOA · API design
FrontendReact · React Native · Vite · HTML · CSS
Education
B.S. Computer ScienceDHA Suffa University
2017–2020 · CGPA 3.5
Certifications
AI For EveryoneCoursera
Make Your Own RoboticsEDVON
open to senior backend roles

Let's talk about your backend.

Available for remote and onsite roles. If you need someone to own backend infrastructure that has to stay up, I'd like to hear about it.

or reach me directly