Senior Software Engineer | Performance & Distributed Systems | Go • C++ • Java Multan, Pakistan (UTC+5) • Open to remote roles
Senior Software Engineer with 10+ years building trading, payments, and data-privacy backends, the last seven spent making high-throughput distributed services faster in production. Finds bottlenecks with profiling (pprof, async-profiler, perf), tracing, benchmarking, and load testing across application code, memory and garbage-collection behaviour, concurrency, and databases, and proves each fix with numbers: 40%+ higher throughput on a multi-asset execution platform serving 350K+ daily users, up to 70% lower critical-path latency, 10× higher write throughput, and reports cut from 10 minutes to 5 seconds. Ships production services in Go, C++, and Java on AWS, Kubernetes, and on-premise Linux, including HSM-secured payment systems. Has led teams of up to five engineers and built the automated test suites that keep performance gains from regressing.
Core Technical Skills
Languages: Go, Modern C++ (11/14/17), Java (17, 21), C, SQL, Python, Bash
Performance engineering: CPU and memory profiling (pprof, go tool trace, async-profiler, perf, Valgrind), benchmarking (Go testing.B, Google Benchmark), load testing (JMeter), GC-pressure reduction, lock-contention reduction, query and batch-write tuning
Concurrency & systems: Goroutines and worker pools, lock-free data structures, std::atomic, POSIX shared-memory IPC, mmap, epoll, non-blocking network servers, Linux performance tuning
Increased service throughput by 40%+ and reduced garbage-collection pressure by profiling CPU and memory allocation (pprof, tracing, benchmarks) and removing hot-path bottlenecks in a multi-asset (FX, CFD) execution platform serving 400+ broker clients and 350K+ daily active users.
Led the performance redesign of the trade, price-event, and execution-reporting service (10M events/hour, ~120 GB/day at peak): decoupled ingestion from storage and cut critical-path response times by up to 70% through PostgreSQL batch-write tuning, leaner indexing, and connection-pool (pgx) optimisation; mentored three engineers on the project.
Owned the order-lifecycle service, handling up to 500,000 orders/hour with lock-free data structures on the hot path, peaks of 500 order and execution operations per second, and 99.95% uptime on Kubernetes.
Designed Redis Streams, Pub/Sub, and WebSocket distribution of prices and execution events to 350K+ client terminals, achieving sub-20 ms p99 internal delivery latency.
Built fault-tolerant concurrency with goroutines, worker pools, and NATS; developed and maintained the FIX connectivity the platform used for order routing and execution reporting with 100+ liquidity providers and brokers.
Built Java document-processing microservices (PDFBox, POI, Tika) sustaining ingestion workloads of 5 TB/day, and simplified the codebase by removing 5,000+ lines of legacy code.
Load-tested APIs, databases, and web applications with JMeter, and profiled HotSpot JVM services with async-profiler to diagnose CPU hotspots, allocation pressure, lock contention, and native or kernel-level slowdowns.
Cut real-time pipeline latency by 50% for 1,000+ dashboard users by replacing HTTP polling with WebSockets and Redis Streams consumer groups.
Migrated two services to AWS SDK v2 across S3, SQS, and EMR, adding retry and timeout handling for resilience and tightening IAM permissions.
Built cardinality-estimation pipelines on Redis HyperLogLog, cutting memory use by 99% compared with exact counting at ~0.81% standard error.
Established automated testing for Java and Go services (5,000+ unit and integration tests with JUnit, Testcontainers, and GoMock; 85%+ coverage) to catch regressions before release.
Led five engineers through design reviews, coding standards, and GitOps workflows across successive milestone releases.
Designed a secrets-management abstraction spanning AWS Secrets Manager, HashiCorp Vault, KMS, and Kubernetes Secrets, adopted by three services across three cloud environments and eliminating 100+ hard-coded credentials.
Modern C++ (11/14/17), perf, Valgrind, GDB, Google Benchmark, CMake, Linux/CentOS (on-premise), POSIX IPC, TCP/IP, OpenSSL/TLS, PostgreSQL, MySQL
Raised asynchronous database-write throughput 10× by replacing Kafka with a file-backed append-only queue using mmap, sequential appends, and batched fsync.
Reduced report generation time from 10 minutes to 5 seconds across 10 on-premise servers through query optimisation (prepared statements, execution-plan caching), POSIX shared-memory IPC, and multi-server job scheduling.
Built a non-blocking epoll-based TCP server supporting 10,000+ concurrent connections, with an OpenSSL TLS layer and custom binary serialization that kept encrypted transport backward-compatible across Avaya CMS versions 6.x–9.x.
Delivered C++ contact-center reporting services integrating Avaya CMS and Afiniti systems, processing 1M+ events/hour.
Integrated HSM-secured payment middleware (Rendezvous, Novus) with ATMs, core banking systems, ISO 8583 switches, and third-party payment rails at banks processing millions of transactions.
Delivered core money-movement flows in the middleware: FX pricing with FIFO tranche management, double-entry wallet ledgers, and card settlement, reversal, and recovery processing.
Implemented secure key-management workflows on Thales HSMs (DUKPT, PIN block translation, EMV cryptograms, 3DES/AES) and encrypted TCP/IP and SOAP channels, supporting the payment application's PA-DSS compliance.
Built ISO 8583 test harnesses in C++ and .NET: socket-level issuer and acquirer simulators, bitmap parsers, message validators, and automated stress and latency tests.
Delivered international payment deployments and certifications, including PayPak EMV for 1LINK, Mastercard issuing certification for Premier Bank Somalia, and Omantel prepaid-card integration for Bank Dhofar.
Open Source & Recognition
Fastly Go SDK and CLI: fixed HTTP response-body leaks by ensuring bodies are always closed (go-fastly #592); replaced reflection with a type switch to cut runtime cost (#583); plus refactors and build fixes across go-fastly and fastly/cli.
Alpaca Go trading SDK: replaced regex error matching with strings.Contains, 3.8× faster in benchmarks (#330); moved the HTTP transport to context-aware DialContext (#332).
Java: fixed case-insensitive date-time parsing in Tablesaw (#1203); code-quality cleanup in XWiki (#2141).
Recognized by Afiniti with an Ivy-Alumni Award for contributions to backend data-layer architecture and APIs for AI-powered contact-center optimization.
Investment-research and financial-analytics platform with Go backend services, financial-data processing, document ingestion, semantic retrieval, and LLM guardrails for structured research outputs.