Back to Home

Engineering Projects

Deep dives into the problems solved, verified benchmarks, system architecture, and implementation trade-offs across my backend, SaaS, AI, and ML builds.

Backend Engineering•Nov 2026

SwiftRoute

URL Shortener & Analytics Backend

p95 Latency Cut

93.3%

760.19 ms → 50.65 ms

Throughput Lift

3.61x

107.90 req/s (25 VUs, 70s)

Write Safety

0 collisions

Across 500 concurrent writes

Automated Tests

11 classes

JUnit 5, Mockito & @WebMvcTest

The Problem

Uncached relational redirect paths suffer heavy latency under concurrent traffic, while sequential IDs leak predictable URLs and synchronous analytics writes slow down 302 responses.

Architecture & Engineering Decisions

  • Built a layered REST API with collision-safe Base62 short codes, custom aliases, stateless dual-token JWT HttpOnly cookie auth, and Swagger/OpenAPI docs; containerized with Docker and deployed on Render.
  • Implemented cache-aside and write-through Redis caching with TTL expiration, @Async click logging, and HikariCP pool tuning, removing synchronous PostgreSQL reads and click writes from the 302 redirect path.
  • Benchmarked with Grafana k6 (25 VUs, 70s, local JAR + cloud Supabase/Upstash), cutting p95 latency by 93.3% (760.19 ms to 50.65 ms vs. uncached DB), lifting throughput 3.61x (107.90 req/s), with 0 collisions across 500 concurrent writes.
  • Built an automated test suite across 11 classes using JUnit 5, Mockito, and Spring MockMvc (@WebMvcTest) covering services, JWT security filters, Base62 encoding, and REST controllers.
JavaSpring BootPostgreSQLRedisDockerJUnit 5MockitoGrafana k6Gradle
Full-Stack SaaS•Feb 2026 – May 2026

OpticMark

Multi-Tenant Smart Attendance SaaS

QR Rotation

30s

100s link expiry & 5-min PINs

Isolation

Multi-Tenant

Org-scoped PostgreSQL + RBAC

Authentication

Custom JWT

Stateless auth, no NextAuth

The Problem

Physical biometric devices are costly to procure and maintain, whereas basic QR attendance systems are easily defeated by static screenshot sharing and proxy check-ins.

Architecture & Engineering Decisions

  • Engineered and deployed a zero-hardware, multi-tenant attendance SaaS built to run on serverless infrastructure (Vercel), replacing physical biometric devices with organization-level isolation and RBAC.
  • Built a multi-factor check-in pipeline combining 30s rotating QR codes (100s link expiry), 5-minute session PINs, campus-radius geolocation proximity checks, and in-browser facial vector extraction with server-side vector matching.
  • Designed normalized, organization-scoped PostgreSQL schemas with connection pooling for serverless concurrency, paired with custom route-protection middleware and stateless auth built without third-party libraries (e.g., NextAuth).
Next.jsTypeScriptPostgreSQLJWTVercel
AI & NLP•Aug 2026

Dual-Source Agentic RAG Assistant

Cyclical LangGraph RAG Pipeline & Evaluation Harness

Query Router

4-Way JSON

Deflects off-topic queries early

Dynamic Top-k

k = 4–10

Self-corrective grader + rewrite

Evaluation

7 Cases

Automated LLM-as-a-Judge harness

The Problem

Single-pass RAG pipelines waste tokens on off-topic queries and hallucinate when local vector stores return incomplete or stale context.

Architecture & Engineering Decisions

  • Architected a cyclical LangGraph RAG pipeline over AWS Well-Architected docs on Groq-hosted LLMs, combining token-saving query contextualization with a 4-way JSON router that deflects off-topic queries before retrieval.
  • Indexed PDF docs in a local FAISS store for instant retrieval, paired with a self-corrective grader that dynamically tunes k (4–10), rewrites queries from gap notes, and falls back to Tavily web search.
  • Implemented citation-grounded JSON synthesis and an automated LLM-as-a-Judge evaluation harness (7 curated test cases) validating routing accuracy, groundedness, and strict source attribution.
PythonLangGraphLangChainFAISSGroqTavily API
AI & NLP•Aug 2026

IntentRouter AI

Hybrid Attention-BiLSTM (ONNX) & DistilBERT Intent Router

Avg CPU Latency

16.89 ms

4.3x faster vs. DistilBERT (73.52 ms)

Model Footprint

1.19 MB

ONNX edge model vs. 268 MB BERT

Compute Savings

~75%

Tier-1 route at >=85% confidence

Intent Classes

27

Benchmarked on 100 noisy queries

The Problem

Running every inbound customer query through a 268 MB Transformer model adds cloud compute cost and CPU latency (~73.5 ms), while naive word embeddings fail on noisy typos.

Architecture & Engineering Decisions

  • Built a dual-tier hybrid routing system across 27 customer support intent categories, accepting Tier-1 ONNX Attention-BiLSTM predictions at >=85% confidence and escalating low-confidence queries to a fine-tuned 66M-parameter DistilBERT (akshatdev14/distilbert_intent_model).
  • Trained a PyTorch Bidirectional LSTM (128 hidden units) with GloVe 100d embeddings and Global Bahdanau Attention, then exported it to ONNX Runtime with fixed sequence padding (N=16) for 3.64 ms median / 16.89 ms average CPU inference.
  • Integrated PySpellChecker Levenshtein typo correction and spaCy (en_core_web_sm) lemmatization to handle noisy user text, paired with a 4-module Streamlit & Plotly comparison and batch-testing dashboard.
PythonPyTorchONNX RuntimeDistilBERTspaCyStreamlitPlotly
Machine Learning•Apr 2026 – May 2026

Urban Traffic Flow Prediction & Anomaly Dashboard

Multi-Model Forecasting & Congestion Classification

Volume Forecast

R² = 0.955

Interstate traffic regression

Congestion Class

92% Acc

Multi-level congestion classifier

The Problem

Historical weather and temporal traffic patterns exhibit strong cyclicality and irregular spikes that degrade naive single-model predictors.

Architecture & Engineering Decisions

  • Deployed a multi-model web dashboard with a centralized preprocessing pipeline to forecast interstate traffic volume (R² = 0.955), classify congestion levels (92% accuracy), and flag unusual patterns from historical weather and time data.
PythonScikit-LearnXGBoost
Machine Learning•Jul 2026

ChurnSphere — Customer Churn Financial Analysis

Optuna-Tuned Banking & Telco Retention Analytics

Bank Churn

81% Acc / 75% Recall

Optuna CatBoost (PR-AUC 0.7294)

Telco Churn

77% Acc / 77% Recall

Optuna CatBoost (PR-AUC 0.6643)

Recall Lift

~48% → 77%

Balanced class weights vs. RF

Optuna Search

30 Trials

Bayesian F1 tuning over 17k rows

The Problem

Imbalanced churn datasets (~20% attrition) cause standard classifiers to favor majority non-churn predictions, missing roughly half of at-risk customers.

Architecture & Engineering Decisions

  • Trained separate CatBoost classifiers across Banking (10,000 customer records) and Telecom (7,043 subscriber accounts) datasets using native categorical feature encoding (cat_features) without sparse one-hot expansion.
  • Applied auto_class_weights='Balanced' and Precision-Recall threshold optimization across 30 Optuna trials to boost churn recall from ~46%–50% (Random Forest baseline) to 75%–77%.
  • Built and deployed a Streamlit retention dashboard providing interactive customer risk simulators, feature-importance explanations, and domain-specific retention recommendations.
PythonCatBoostOptunaScikit-LearnStreamlitPandas