Mehedi Hasan

Mehedi Hasan

AI-Native Software Engineer

  • Software Developer at SAWAB Bangladesh · 4+ yrs
  • Dhaka ·

About

Full-Stack Software Engineer with 4+ years of hands-on experience architecting high-performance web applications and scalable APIs. Core expertise spans modern TypeScript, React, and Next.js on the frontend, paired with robust NestJS, Python (FastAPI), and event-driven distributed architectures. Also familiar and extensively experienced with PHP / Laravel backend microservices, custom web platforms, and WordPress / WooCommerce solutions.

An AI-native engineer who leverages state-of-the-art LLM workflows (Claude, OpenAI, Antigravity, OpenCode, Ollama) to accelerate engineering velocity without sacrificing code hygiene. Actively building multi-agent automation systems using LangGraph, MCP, and retrieval-augmented workflows (PGVector), backed by Kafka event streaming, Docker containerisation, and Kubernetes.

Currently leading development for SAWAB Bangladesh's digital web platforms and building SAWAB's multi-organisation NGO ERP and HRM system on Frappe and Next.js. Strong grasp of enterprise IT, VAPT security, and clean documentation—driven to build reliable software fast.

Based in

Dhaka, Bangladesh

2:32 PM GMT+6
Afternoon in Dhaka
Works

Remote-first

Open to hybrid roles and on-site work in Dhaka, with remote collaboration across US, EU and APAC time zones.

Remote Hybrid On-site (Dhaka) Async-friendly Download CV
Languages

English

Professional

Business communication, presentations and writing.

Bangla

Native

First language.

Hindi

Speaking & listening

Everyday conversation and listening.

Experience

4 yrs 4 mos overall · 4 full-time · 1 volunteer

SAWAB Bangladesh logo

Software Developer

Current
Jul 2026 – Present · 5 mos
SAWAB Bangladesh·Full-time·Dhaka, Bangladesh
Scope
10

module areas in the NGO ERP

Delivery
2

public web platforms maintained

  • Build and maintain SAWAB Bangladesh's public web platforms (sawabbd.org, sawabfoundation.org.bd) on Node.js / React: donation pipelines, bilingual (Bangla/English) content, and program pages for education, healthcare and WASH initiatives.
  • Design and develop SAWAB's multi-organisation NGO ERP and HRM on Frappe, ERPNext and HRMS with a Next.js 15 portal: HR, ZKTeco biometric attendance, multi-project payroll, NGOAB and donor grants, micro-investment, accounts and procurement, for SAWAB and SAWAB Foundation; in active development, with a live demo.
Node.jsReactFrappeERPNextNext.jsMariaDB
Jibika Intelligic Ltd. logo

Software Developer & AI Specialist

Jan 2025 – Jun 2026 · 1 yr 6 mos
Jibika Intelligic Ltd.·Full-time·Dhaka, Bangladesh
Efficiency
~50%

less manual effort on HRM content, research and reporting, with humans approving every output

  • Worked on Jibika Plexus, a web-based HR & payroll platform used by 300+ companies, covering personnel, leave, attendance, payroll, loans and performance appraisal.
  • Integrated OpenAI, Claude and Gemini APIs into Reports, Appraisal, Leave and Personnel modules to automate report narratives, appraisal drafts, leave-policy answers and HR documents, cutting manual effort by ~50%.
  • Delivered attendance processing with device and GPS tracking, multi-layer approvals and auto leave calculation. Built the Flutter mobile app, with NID OCR onboarding and GPS duty tracking.
  • Supported client implementation, training and maintenance, keeping payroll current with government gazette updates.
.NETOracleFlutterLLM APIsHR & Payroll
Tafseerul Quran Foundation (TQF) logo

Voluntary Web Developer

Current
2024 – Present · 2 yrs 11 mos
Tafseerul Quran Foundation (TQF)·Volunteer·Bangladesh
  • Build and maintain the official TQF website (tqfbd.org) on WordPress: custom theme configuration, plugin management, security patching, performance optimisation and a mobile-responsive layout for a national non-profit audience.
  • Collaborate with the TQF team on digital-outreach strategy and social-media integration.
WordPressVolunteerNon-profit
Smart Software Limited logo

ERP Developer

Jan 2024 – Dec 2024 · 1 yr
Smart Software Limited·Full-time·Dhaka, Bangladesh
Scope
3

ERP modules built for institutional clients

Reach
20+

concurrent users supported day to day

  • Designed and built PHP & JavaScript ERP modules for institutional clients: HRIS & Payroll, School Management and Hospital Management.
  • Turned client requirements into SRS / BRD and UAT documents, then drove module testing, defect tracking and fixes through every SDLC phase.
  • Led client onboarding, configuration and end-user training, and kept the system stable for 20+ concurrent users with day-to-day debugging and hardware support.
PHPJavaScriptERPSRS / BRDUAT
HG

Documentation & IT Executive

Aug 2022 – Dec 2023 · 1 yr 5 mos
HBIZZ Group Company·Full-time·Karwan Bazar, Dhaka
  • Provided IT support across hardware, software, networking and connectivity; maintained IT assets, user accounts and system documentation.
  • Enforced data security through access control, secure document handling and scheduled system backups.
  • Developed and maintained the corporate website (hbizz.com) on WordPress with cPanel hosting configuration and performance monitoring.
WordPresscPanelIT supportSecurity

Tools I use

Core stack

Web platforms, APIs and backend services

AI & agents

LLM features, multi-agent workflows and RAG

AI-assisted development

Coding and design with AI tools

Data & streaming

Storage, vector search and event pipelines

Infra & observability

Containers, cloud and monitoring

Sample designs

Four sample designs that put these tools together, each with its pipeline and code.

TypeScriptorder_service.nest.ts

Transactional Outbox & Event-Driven Pipeline

High-Concurrency Ingress with ACID Protection & Apache Kafka Pub/Sub

NestJS MicroservicesPostgreSQL ACIDApache KafkaDistributed Tx
  • 1.2msIngress Latency
  • 100% ACIDTx Isolation
  • 0% DropKafka Reliability
  • 50k+ RPMPeak Capacity
Pipeline and code
  1. Step 01 // IngressOrder Ingestion

    REST/gRPC checkout payload validated & ingested via NestJS controller.

  2. Step 02 // ACID TxRow-Locked Write

    PostgreSQL connection pool executes atomic BEGIN -> INSERT with row locking.

  3. Step 03 // Kafka EmitEvent Publication

    Outbox event emitted to order.dispatched stream with zero packet loss.

  4. Step 04 // DownstreamAsync Sync & Rollback

    Inventory & payment microservices sync; automated rollback on exception.

import { Controller, Inject } from '@nestjs/common';
import { MessagePattern, Payload } from '@nestjs/microservices';
import { ClientKafka } from '@nestjs/microservices';

// High-Concurrency Event-Driven Microservice
@Controller()
export class OrderConsumerController {
    constructor(
        @Inject('KAFKA_SERVICE') private readonly kafkaClient: ClientKafka,
        private readonly dbPool: PostgresConnectionPool
    ) {}

    @MessagePattern('order.checkout.v1')
    async handleOrderEvent(@Payload() data: OrderPayload) {
        const client = await this.dbPool.connect();
        try {
            await client.query('BEGIN');
            const record = await client.query(
                'INSERT INTO orders(id, amount, status) VALUES($1, $2, $3) RETURNING *',
                [data.id, data.amount, 'PROCESSING']
            );
            await client.query('COMMIT');
            this.kafkaClient.emit('order.dispatched', { orderId: record.rows[0].id });
            return { status: 'DISPATCHED_TO_PIPELINE', latency: '1.2ms' };
        } catch (err) {
            await client.query('ROLLBACK');
            throw err;
        }
    }
}

TypeScriptdistributed_cache.ts

Distributed Mutex Lock & Cache Stampede Shield

Redis Cluster Engine with NX Mutex & Token Bucket Rate Limiting

Redis ClusterioredisRedlock AlgorithmStampede Prevention
  • 99.4%Cache Hit Ratio
  • 3000msLock TTL Safety
  • Zero-DogpileStampede Guard
  • 100k+ OPSRedis Throughput
Pipeline and code
  1. Step 01 // Burst ReadTraffic Ingress

    High-concurrency read requests hit distributed cache layer simultaneously.

  2. Step 02 // Mutex LockRedlock NX Check

    Acquires atomic distributed lock with 3000ms TTL to prevent dogpiling.

  3. Step 03 // Failsafe WaitWait & Retry (50ms)

    Secondary workers wait and read cached result instead of hitting database.

  4. Step 04 // HydrationAtomic Hydration

    Winning worker queries DB once, re-hydrates Redis, and releases mutex.

import Redis from 'ioredis';

// Redis Cluster Distributed Lock & Rate Limiter (Token Bucket)
export class DistributedCacheEngine {
    private cluster: Redis.Cluster;

    constructor() {
        this.cluster = new Redis.Cluster([{ host: 'redis-cluster', port: 6379 }]);
    }

    async acquireLockAndCache(key: string, ttlMs: number, fetchFn: () => Promise<any>) {
        const lockKey = `lock:${key}`;
        const acquired = await this.cluster.set(lockKey, 'LOCKED', 'PX', 3000, 'NX');
        
        if (!acquired) {
            await new Promise(res => setTimeout(res, 50));
            return this.cluster.get(key); // Cache stampede protection
        }

        try {
            const freshData = await fetchFn();
            await this.cluster.set(key, JSON.stringify(freshData), 'PX', ttlMs);
            return freshData;
        } finally {
            await this.cluster.del(lockKey);
        }
    }
}

Pythonagentic_pipeline.py

Autonomous Vector RAG & Agentic Swarm

Enterprise Knowledge Grounding with Gemini 1.5 Pro & PGVector HNSW

LangChainGemini 1.5 ProPGVector HNSWAsync Python
  • 18.4msRetrieval Speed
  • 96.8%Context Density
  • 0% HallucinationStrict Grounding
  • 1M TokensContext Window
Pipeline and code
  1. Step 01 // EmbedSemantic Query Parse

    User prompt parsed and converted into dense 768-dim vector embeddings.

  2. Step 02 // SearchPGVector Cosine Search

    HNSW index runs sub-15ms nearest-neighbor semantic cosine similarity match.

  3. Step 03 // GroundingContext Fusion

    Top-5 authoritative document chunks extracted and injected into prompt context.

  4. Step 04 // SynthesisGemini 1.5 Synthesis

    Gemini 1.5 Pro produces hallucination-free answer with exact citations.

import asyncio
from langchain_google_genai import ChatGoogleGenerativeAI
from pgvector.asyncpg import register_vector

# Autonomous LLM RAG & Orchestration Engine
async def orchestrate_inference(query: str, pool):
    model = ChatGoogleGenerativeAI(model="gemini-1.5-pro", temperature=0.1)
    
    # Retrieve context from PostgreSQL PGVector index
    async with pool.acquire() as conn:
        embeddings = await model.aembed_query(query)
        context = await conn.fetch(
            "SELECT content FROM knowledge_docs ORDER BY embedding <=> $1 LIMIT 5",
            embeddings
        )
    
    response = await model.ainvoke(f"Context: {context}\nTask: {query}")
    return {"result": response.content, "latency_ms": 18.4}

YAMLk8s_deployment.yaml

Cloud-Native Kubernetes & Auto-Healing Cluster

High-Availability Container Orchestration with Prometheus Telemetry

AWS EKSKubernetes Apps/v1Prometheus ScrapeRollingUpdate
  • 99.99%Production SLA
  • 5 ReplicasActive Redundancy
  • < 3sAuto-Healing Time
  • 1Gi / 1000mPod Limits
Pipeline and code
  1. Step 01 // RoutingCloudflare Ingress

    Global CDN and ingress controller route authenticated traffic to API gateway.

  2. Step 02 // Scaling5x Pod Replicas

    Auto-scaled stateless NestJS pods balance CPU/memory load evenly across nodes.

  3. Step 03 // RolloutZero-Downtime Rollout

    RollingUpdate strategy swaps container images with zero service interruption.

  4. Step 04 // MetricsPrometheus Scrape

    Prometheus scrapes port 3000 every 15s to push alerts to Grafana dashboard.

# Cloud-Native Kubernetes Pod & Prometheus Scraping
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nestjs-api-gateway
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "3000"
spec:
  replicas: 5
  strategy:
    type: RollingUpdate
  template:
    spec:
      containers:
        - name: app
          image: mehedi/nest-gateway:v2.4
          resources:
            limits: { cpu: "1000m", memory: "1Gi" }
          envFrom:
            - configMapRef: { name: app-env-config }
How I design systems: the architecture

Education

B.Sc. in Computer Science & Engineering

Daffodil International University (DIU), Dhaka · Graduated 2022

Certifications & training

Web Development: HTML, CSS, JavaScript & Advanced React (6 months)

SR Institute of Design

Cybersecurity Training: VAPT

Security Mind Pro

Google AI Essentials: Generative AI, Prompt Engineering & Responsible AI

Google / Coursera

AI Tools & Automation: ChatGPT, Gemini, Claude, OpenClaw

Professional Development

B2B Lead Generation

BITM

Additional

Leadership
100+members led

Leadership & Community

President, Gobindopur Rising Tigers Club: led a 100+ member community organisation across social-development, youth mentorship, and public communications initiatives.

Youth mentorshipPublic communicationsSocial development
Research

Philosophy & R&D

Passionate about autonomous agent architectures, local LLM inference, and building developer tools that maximize flow state and engineering velocity.

Agent architecturesLocal LLM inferenceDeveloper tools
Volunteer
2024volunteering since

Voluntary Work

Technical contributor for community websites and open-source non-profit initiatives.

Non-profitWordPressCommunity tech

AI replies can be wrong · don't share personal info