~/nasar 200 OK
Multi-tenant SaaS & AI-powered backends

Nasar

Backend Engineer · Django & AI Systems

I build multi-tenant APIs, event-driven pipelines, and AI-powered backends in Python, Django, and PostgreSQL. Focused on clean architecture, async work kept off the request path, and systems sized honestly for the scale they serve.

3
Production systems
4+
AI model types served
Multi-tenant
Primary pattern
zsh · nasar-ali.netlify.app
$
200 OK  

      
01 // Production systems & architecture

Engineered for clean boundaries, async throughput & real users

Selected backend architectures I've built and refactored. Click any topology node to inspect it, or switch tabs to see the implementation pattern.

OTHER BUILDS & SIDE SYSTEMS
TajirDjango · React

Multi-tenant wholesale business management SaaS, built solo as developer and super admin to take a family distribution business from paper to digital: stock, billing, customer credit and worker accountability.

  • Tenant middleware + role-based permissions
  • Per-pack pricing with stock tracked in singles
  • Deployed on Railway, PostgreSQL-backed
Local RAG Learning AppPython · FastAPI

A CPU-only retrieval-augmented learning app: LangChain pipeline with a free local embedding model, Qdrant in Docker, and a FastAPI layer that routes to hosted LLMs.

  • Runs on a CPU-only machine
  • Qdrant vector store in Docker
  • OpenRouter & Gemini model routing
02 // Core stack & infrastructure

Production-proven tools across the server boundary

The daily stack behind the systems above.

Languages & Frameworks

Typed, readable services
PythonPrimary language for APIs, workers & AI glue
Django / DRFMulti-tenant APIs, ORM, admin & auth
SQLQuery design, indexing & ORM internals
TypeScript / ReactFrontend integration & tooling
FastAPIAI services & RAG endpoints

Data Stores & Search

Durable first, fast second
PostgreSQLPrimary OLTP, JSONB catalogues
RedisCache, Celery broker & Channels layer
MinIO / S3Object storage for media & recordings
QdrantVector search for RAG

Messaging & Realtime

Work moves off the request path
CeleryQueued background & AI workloads
Apache KafkaEvent streams between services
Django Channels / SSERealtime push & streaming responses
LiveKit (WebRTC)Self-hosted SFU & recording egress
REST / OpenAPIContract-first public APIs

Cloud & Delivery

Repeatable deployments
KubernetesNGINX Gateway Fabric ingress
DockerContainerised services & local stacks
RailwayManaged deploys for smaller SaaS
GitReviewable, reversible change history
WORKING PRINCIPLES
Plan Before CodeAgree the design and data model first, then implement.
Right-Sized ArchitectureSolve for the scale that exists, not a hypothetical one.
Tenant IsolationEvery query and permission is scoped to its organisation.
Async Off The PathHeavy work goes to queues; requests stay fast.
03 // Observability & design decisions

Built to stay predictable when workloads spike

Trigger a traffic surge or a worker failure to see how queues, retries and back-pressure behave. This is an illustrative model, not live production data.

RESILIENCE SIMULATOR · API + CELERY WORKERS · ILLUSTRATIVEHEALTHY · SLO MET
REQ/S THROUGHPUT WINDOW (60s)
—
QUEUE DEPTH—
WORKER UTIL—
CACHE HIT—
BREAKER—
behavior:
DESIGN DECISIONS & REFACTORS

Choices made on real projects, and the reasoning behind them.

Screen Recording Pipeline (DataNext)
BEFOREClient-side chunked S3 multipart upload
AFTERLiveKit-native Track Composite Egress → S3 / MinIO
Notification System Design (DataNext)
CONSIDEREDFire-and-forget sends inside the request
CHOSESSE in-app + email via Celery outbox, idempotency keys, per-user preference rows
Framework Choice (Tajir)
CONSIDEREDFastAPI
CHOSEDjango REST Framework for admin, ORM and auth out of the box
Add your own measured numbers here (latency, throughput, cost) once you have them from your monitoring.
04 // Changelog & experience

git log --oneline --career

Backend work shipped in production, and the path that led here.

commit c9f41a2OCT 2025 — PRESENTIslamabad, PK

Backend Developer @ Betacodes Pakistan

Backend developer on DataNext (an AI-powered multi-tenant SaaS) and the Nimar digital asset management platform, usually owning the architecture-refactor tasks.

  • Redesigned screen recording from chunked S3 multipart upload to a LiveKit-native Track Composite Egress flow.
  • Designed the DataNext notification system: SSE in-app delivery, email through a Celery outbox, idempotency keys and user preference rows.
  • Built SSE chatbot streaming, request throttling, and is refactoring the media file / post / share mechanism.
  • Worked on Nimar's microservices: Kafka, Celery, Redis, PostgreSQL, MinIO and Docker.
PythonDjangoCeleryRedisPostgreSQLKafkaKubernetes
commit 7b2e80dBEFORE BETACODESPakistan

Data Science / AI Engineer @ Xilan AI

Worked on Tenderasaan, the project that grew out of my university capstone and earned a gold medal.

  • Built AI and data-driven features for Tenderasaan in Python.
  • Moved from data science toward backend engineering, which is the focus of my work today.
PythonData ScienceML
commit 3a19d55GRADUATED JUN 2025Islamabad, PK

BS Computer Science @ NUTECH

Gold medal for the Tenderasaan capstone project.

05 // Endpoints & contact

Let's talk backend systems, AI integrations, or your next team

Open to backend / AI engineering roles

Whether you're hiring, untangling a multi-tenant design, or want to compare notes on Django architecture and AI pipelines, my inbox is open.

✉your.email@example.com
Islamabad, Pakistan · UTC+5 · Remote friendly
POST/v1/messagesContent-Type: application/json
demo form · connect it to your backend or email service before launch