Mahdi Heidarikia
Senior Software Engineer (Backend)
Berlin, Germany
Backend engineer with 7+ years of experience, mainly in Python, PostgreSQL and event-driven systems, from a shopping search engine handling 150M+ daily requests to real-time data and production scheduling for steel plants. Former lead of a four-person team. I take features from message contract and data model through to rollout, and trace production problems to their cause.
Experience
Software Engineer · Smart Steel Technologies
June 2023 – Present
Berlin, Germany
Production scheduling since August 2025
- Built automatic overlap resolution for hot-rolling schedules: API, background job, and start-time messages to the plant's execution system that keep planners' open edits intact. Owned the epic, planned the work and delivered across kernel, backend and frontend.
- Fixed a race condition that brought deleted schedules back by merging separate Kafka topics into one ordered stream, with a staged rollout across all customer environments.
- Investigated a backlog of stale records in a customer's production system. Traced it to three message-flow causes, documented the findings, and shipped the parser fix and cleanup migration.
- Designed an automated master-data sync: consumes customer catalogs from Kafka, stores real changes as new versions and holds them for approval with HTML diffs.
- Wrote 37 Alembic migrations across four PostgreSQL schemas, including indexes built concurrently to speed up a lagging message consumer without locking live tables.
- Cut test time from 234 s to 58 s in the scheduling kernel (about 2,400 tests) and from 185 s to 97 s in the backend (about 1,500 tests).
- Added Prometheus job metrics and reworked Kafka lag alerts to catch stalled consumers instead of short spikes.
Temperature prediction and energy recommendations June 2023 – February 2026
- Added 11 plant message types end to end: Avro schema, tested Python parser, deployment and PostgreSQL sink.
- Merged per-team Kafka topics, connectors and transformers for an integrated steel plant into one site-wide pipeline.
- Made a plant-data reader (OPC UA to Kafka) highly available with Redis leader election, lock renewal and fail-fast supervision.
- Built core parts of an event-driven service that tracks production and hosts ML models, and took an energy recommendation model live through it.
- Moved streaming components from bare-metal Docker Compose to GitOps-driven Docker Swarm during a site migration.
- Python
- FastAPI
- SQLAlchemy
- PostgreSQL
- Kafka
- Kafka Connect
- Avro
- IBM MQ
- Redis
- Docker Swarm
- GitLab CI
- Prometheus
- Grafana
- Sentry
Team Lead, Customer Success · Torob.com
April 2022 – May 2023
Tehran, Iran
- Took over the ticketing system (10k messages a day) and the product update service (12M products a day).
- Led a four-person team building ML modules that extract data from new online shops with 96% accuracy, cutting support effort per shop from 30 to 5 minutes.
- Proposed an event-driven design for ticketing automation, implemented by the team, that lets other teams write their own automations.
- Integrated ChatGPT into the ticketing system, reducing tickets that needed support by 13% on average.
- Halved response times of the legacy ticketing system through web server and database fixes.
Software Engineer · Torob.com
September 2020 – April 2022
Tehran, Iran
- Built Prometheus and Grafana monitoring for PostgreSQL, then tuned configuration, connections and heavy queries, reaching an 80% HOT-update rate on update-heavy tables.
- Cut ML data-fetching time from 8 hours to 30 minutes with microservices, DVC and GitLab CI/CD, reducing server costs by 20%.
- Improved PostgreSQL-to-Elasticsearch sync performance by 75% with asyncio.
- Reduced search latency by about 30% through index mapping and query changes.
- Built a customizable notification system; its concurrent RabbitMQ consumer reduced database queries by 90%.
- Built an internal SSO integrated with the Kubernetes Traefik ingress to secure internal services.
- Reworked threading in Cython services around the GIL, cutting boot time from 4 minutes to under 1 and removing boot-time locking.
- Python
- Cython
- Django
- FastAPI
- PostgreSQL
- Elasticsearch
- MongoDB
- ClickHouse
- RabbitMQ
- Kubernetes
- ArgoCD
- Airflow
- GitLab CI
- JavaScript
- React
Software Engineer · LiboBerry
March 2021 – March 2022
Guelph, Canada · remote, part-time
- Designed and built the backend and the microservices for AI model pipelines, including Gensim models for document similarity.
- Led the development team and helped the founder hire three developers.
Software Engineer · Satell
December 2018 – May 2020
Urmia, Iran
- Led a five-person team building a location-based online sales platform.
- Designed and built its product search and autocomplete, limited to products available near the user.
- Built a MongoDB-to-Elasticsearch synchronizer with custom index mappings.
Skills
- Languages
- Python, SQL, JavaScript (React), Bash; familiar with C++ and TypeScript/Vue
- Backend
- FastAPI, Django/DRF, SQLAlchemy, Alembic, Pydantic, asyncio
- Data and messaging
- PostgreSQL, Kafka, Kafka Connect, Avro/Schema Registry, RabbitMQ, IBM MQ, Redis, Elasticsearch, ClickHouse, MongoDB
- Infrastructure
- Docker, Docker Swarm, Kubernetes, GitLab CI/CD, ArgoCD, Airflow
- Testing and observability
- pytest, Prometheus, Grafana, Sentry
Project
Jit. Rec: open-source RTMP video recorder with a Python/Django backend and React frontend.
Education
B.Eng. Computer Engineering
Urmia University, Iran · 2016 – 2020
Languages
English (fluent)
German (A1, studying A2)
Azerbaijani (mother tongue)
Persian (native)
Turkish (intermediate)