Mehran Shabani

Senior Backend Engineer

Mehran Shabani

Professional Summary

Senior backend engineer with +7 years building high-performance services in Rust, TypeScript, and Python. Deep experience with Axum, Tokio, and Diesel across modular multi-crate workspaces, distributed microservices communicating over a NATS JetStream event bus, and PostgreSQL schema design, indexing, and connection pooling under production load. Observability is a core part of how I build: structured logging and distributed tracing with the tracing crate, Prometheus metrics with custom exporters, and Grafana dashboards with automated alerting, all shipped through CI/CD onto Kubernetes. Author of two open-source frameworks published to crates.io and npm.

Technical Skills

Rust: Axum, actix-web, Tokio, Diesel, tower / tower-http, serde, tracing, multi-crate workspaces

Observability: Prometheus with custom exporters, Grafana dashboards, distributed tracing, structured logging, centralized aggregation, automated alerting

Distributed Systems: Microservices, hexagonal architecture, NATS JetStream event bus, REST and WebSocket APIs, request validation, rate limiting, concurrency

Databases & Infrastructure:

Languages: Rust, TypeScript, JavaScript, Python, SQL, C++, C, Swift, Kotlin, Bash

Testing & Practices: cargo test, Vitest, pytest, integration test suites, code review, open-source maintenance

Work Experience

Software Developer & QA Engineer

Sep 2019 - Present

Telegram Messenger

  • Rust Backend: Own the bug-tracking platform behind bugs.telegram.org, a Rust API on Axum and Diesel over PostgreSQL, split into bot, server, and shared services, with a TypeScript Mini App client
  • Authored rustigram, an async-first Rust Telegram Bot API framework published to crates.io, and adopted it as the foundation for internal bot tooling
  • Designed a multi-role authorization model across Admin, Moderator, and User hierarchies with granular permissions, real-time comment threads, subscriptions, and advanced filtering
  • Built a background crawler and scheduled jobs to ingest and synchronize bug data, with a webhook bot driving workflow automation
  • Observability: Established centralized monitoring across bot and API services:
    • Structured logging with the tracing crate and centralized aggregation
    • Prometheus metrics collection with custom exporters
    • Grafana dashboards with automated alerting delivered over the Telegram API
  • Maintain CI/CD pipelines on GitHub Actions and Jenkins for zero-downtime deployments, and Kubernetes clusters for scalable bot infrastructure
  • Conduct pre-release security testing and QA automation across client applications

Backend Developer & AI Engineer

Jan 2024 - Present

Medipol Mega Hospital

  • Rust Backend: Built a high-performance Axum API with request validation, structured error handling, and rate limiting
  • Designed a comprehensive PostgreSQL schema with proper entity relationships, foreign keys, and indexing strategies, under a version-controlled Diesel migration system
  • Cut response times by 60% on complex data retrieval through query optimization and pooled connections
  • Configured automated backup systems and database replication for high availability
  • Implemented Microsoft Entra ID authentication through the MSAL framework, with secure keychain storage and a unified token-refresh session flow across platforms
  • Shipped native clients over the shared Rust backend: iOS in SwiftUI with MVVM, and Android in Kotlin with Jetpack Compose

Notable Projects

rustigram: Async Rust Framework for the Telegram Bot API

Open Source

Rust, Tokio, Axum

  • Designed and published a typed, async-first framework covering the full Telegram Bot API as a modular multi-crate workspace
  • Exposed every Bot API method as an awaitable builder over a composable filter-handler routing pipeline on Tokio
  • Ships a Mini App crate with server-side initData validation and Axum integration
  • Backed by an extensive test suite, CI, and automated releases to crates.io

https://rustigram.io

MEBAR Core: Hexagonal Plugin-Platform Backend

Rust

Distributed Systems & Event-Driven Architecture

  • Built a ports-and-adapters Rust kernel owning identity, access control, and a plugin bus
  • Plugins register at startup and communicate over a NATS JetStream event bus, so the core never restarts for a plugin update
  • Structured as a modular workspace:
    • Auth, identity, and gateway crates
    • Plugin runtime and event bus adapters
    • Observability layer with tracing and metrics
  • Shipped with CI, automated releases, and an extensive integration test suite

Bug Tracking Platform: Telegram

Rust

Axum, Diesel & PostgreSQL

  • Multi-crate Rust workspace splitting bot, HTTP server, and a shared domain crate that owns the Diesel models, queries, and migrations
  • Role and ownership resolved from Telegram initData in an Axum extractor, then enforced in the queries rather than the handlers
  • PostgreSQL integration suite against a live database, and a snapshot test that fails the build when the route surface changes

https://t.me/BugsBot

Brick Game: Replay-Verified Game Server

Rust

Axum, Diesel & Deterministic Simulation

  • Built a game backend where the score is decided by the server, not reported by the client: a run uploads its input log and the API replays it to find what it was worth, refusing any score that does not reproduce
  • Runs are deterministic from a seed the client never holds: the API deals entropy in batches and the device stalls rather than inventing values, which is what makes replaying from the seed alone possible
  • Over 1,600 tests across unit, integration, and browser suites, gated in CI on formatting, clippy at deny-warnings, and a full end-to-end run

Additional Projects

  • rustigram-tma: TypeScript framework for Telegram Mini Apps, published as three npm packages (tma-core, tma-solid, tma-server) with full Vitest coverage and an automated release pipeline
  • Star Cipher: Steganography tool in C that hides messages in star-pattern BMP images using a password-based cipher, with cross-platform CI release builds
  • RustRAG+: Retrieval-augmented Rust code QA over Qwen2.5-Coder-7B with FAISS retrieval and QLoRA fine-tuning, raising ROUGE-L from 0.13 to 0.28 and BERTScore from 0.82 to 0.87
  • Teleminal: SSH terminal Telegram Mini App with a WebSocket bridge and companion bot; 3rd place in the Telegram 2023 Mini Apps contest

Education

BSc, Computer Engineering

Sep 2022 - Jun 2026

Istanbul Medipol University, Türkiye

GPA 3.75 / 4.0

MD, Medicine

Sep 2015 - Mar 2021

Zanjan University of Medical Sciences, Iran

Languages

English: Fluent

Turkish: Intermediate

Dutch: Basic

Italian: Basic