Tanat Alpenov

Senior PHP Backend Engineer

Backend architecture, performance and systems programming

Building reliable backend systems, exploring system architecture, and engineering for performance.

12+ years of commercial software development. Focused on backend engineering, system design, performance optimization, and understanding the internals of software systems.

php-systems-platform architecture: an HTTP server feeds the application runtime, which uses a cache, a database, a search service and a job queue; workers process jobs and update search; all of them run on the system runtime. HTTP Application runtime Cache Database Search Jobs Workers System runtime: processes · memory · I/O
php-systems-platform: the PHP Systems Lab components running as one backend.
Years of commercial development
12+
Public lab repositories
15
Engineering Lab book chapters
54
Learning projects on backend internals
9

A backend engineer who wants to understand how things work under the hood

Portrait of Tanat Alpenov

I started programming in 2007, and early on I got curious about what compiled programs actually do. To read their machine code in OllyDbg and solve crackme challenges, I learned x86 assembly — and wrote my own assembly editor, FASM Editor, in Delphi along the way.

I have worked professionally since 2014. My first job was at a university, where I built its internal software: an anti-plagiarism system in PHP and Java, a document registry and a task tracker.

From 2016 to 2018 I worked on Java and Kotlin backends: a plugin-based REST service over third-party queue systems, a RabbitMQ-driven ingestion service for company registry data, and Spring Boot microservices on AWS. Since 2018 my work has been mainly PHP and Symfony: products in healthcare, domain registration and network monitoring, then five years on a group of high-traffic consumer products, and now a SaaS platform for online businesses.

That habit stayed with me: outside of work I still learn by building small, simplified versions of the mechanisms backend systems depend on — worker pools, job queues, an event-driven cache server, an HTTP server, a database engine with a write-ahead log — and keep them as reference notes. I prefer hands-on engineering to people management.

Where I work and what I study

Areas of production experience and ongoing study. The note under each card says where the experience comes from.

Backend engineering

  • PHP 8, Symfony; earlier Yii and Laravel
  • Java and Kotlin with Spring Boot (2016–2018)
  • REST API design and integration with third-party systems
  • MySQL and PostgreSQL schema design

Production work since 2014.

Performance

  • Finding the query or bug behind database and Redis load
  • Primary/replica databases that scale with load
  • Message flow problems in RabbitMQ
  • OPcache, preloading and JIT
  • Long-running PHP: RoadRunner, Swoole

Production work, 2021–2026.

Systems engineering

  • Processes, fork(), IPC, shared memory
  • Event loops, non-blocking I/O, Fibers
  • Long-lived workers and supervision
  • Job queues: leases, retries, dead letters
  • Caching, storage engines, write-ahead logging

Explored through learning projects in PHP Systems Lab.

Architecture

  • Layered, hexagonal and clean architecture
  • Modular monolith and service boundaries
  • CQRS and event-driven design with an outbox
  • Domain-driven design and bounded contexts

CQRS and event-driven design applied at work; compared side by side in Architecture Lab.

Infrastructure

  • Docker, Linux, AWS S3
  • RabbitMQ, Redis
  • MySQL, PostgreSQL
  • Elasticsearch, OpenSearch
  • GitLab CI
  • Sentry, Grafana, Loki

Production work.

Engineering practices

  • Step-by-step PHP and Symfony upgrades of live services
  • Rolling out strict_types across a large monolith
  • Tests (PHPUnit, Behat) and code-style checks required in CI
  • Local Docker environment matching production
  • Static analysis with PHPStan
  • One shared code-quality package for every PHP project

Production work; PHPStan level 8 in the labs.

AI-assisted engineering

  • Daily development with coding agents: Claude Code, Codex
  • Maintaining agent instructions (AGENTS.md) in a large codebase
  • Automated AI review of pull requests in CI
  • Large mechanical changes split into small PRs, each checked by tests, static analysis and AI review

Production work at systeme.io, 2026.

Rebuilding the mechanisms, then measuring them

Personal learning projects. I build simplified versions of the mechanisms I want to understand and keep them as working reference notes for myself. Each is small and runnable — tests, static analysis, CI, Docker — but they are study material: they show what I have explored, not a claim of deep expertise in every topic, and they are not production replacements.

PHP Systems Lab

Nine projects, from memory and processes up to a platform that joins them over real process and network boundaries. Overview repository. Each project has chapters in the Engineering Lab book.

  1. 09php-systems-platformall of the above, integrated

    The integration project: HTTP, cache, database, search, jobs and workers from the previous projects running together as one backend platform.

    How should failures and backpressure move between components?

    • PHP 8.5
    • multi-process
    • event-driven
  2. 08php-mini-searchstemming · inverted index · BM25

    A full-text search service: Unicode normalization, Snowball stemming, an inverted index, BM25 ranking, an append-only log and crash recovery.

    What does “more relevant” mean, as a number?

    • PHP
    • intl
    • BM25
    • inverted index
  3. 07php-mini-databasepages · B-trees · SQL · transactions · WAL

    A small relational engine: pages and records, B-tree indexes, a SQL parser and executor, transactions, a write-ahead log and crash recovery.

    How can a database recover after a crash?

    • PHP
    • SQL
    • B-tree
    • WAL
  4. 06php-mini-http-serverparsing · routing · middleware · keep-alive

    An event-driven HTTP server: request parsing, routing, middleware, response buffering and keep-alive.

    What happens when a client is slower than the server?

    • PHP
    • TCP
    • HTTP
    • event loop
  5. 05php-mini-cacheRESP · pipelining · TTL · Pub/Sub

    An event-driven in-memory server speaking RESP: pipelining, TTL, Pub/Sub, MULTI/EXEC with WATCH, snapshots through a forked child, and measured event-loop fairness.

    How does one event loop serve many connections, and what happens when one client becomes too expensive?

    • PHP
    • TCP
    • RESP
    • non-blocking I/O
  6. 04php-job-queueleases · ACK · retries · dead letters

    Reliable background jobs: delivery leases and fencing, acknowledgements, retries with backoff, delayed jobs, priorities, dead letters, and append-only file persistence.

    What does “reliable delivery” actually mean when a worker crashes mid-job?

    • PHP
    • pcntl
    • at-least-once
    • append-only log
  7. 03php-worker-poolmaster/worker · supervision · graceful shutdown

    A persistent master/worker pool: worker lifecycle and states, supervision, a length-prefixed protocol with correlation IDs, draining, timeouts, backpressure, graceful reload and autoscaling.

    How can a pool of long-lived workers shut down without dropping requests in flight?

    • PHP
    • pcntl
    • Unix sockets
    • stream_select
  8. 02php-concurrencyprocesses · IPC · event loops · Fibers

    A 38-lesson course of runnable experiments: processes, IPC, supervision, producer/consumer, pipelines, actors, work stealing, event loops, Fibers, and hand-built PHP-FPM-, RoadRunner- and Messenger-style runtimes.

    How do event loops work, and what problem do Fibers solve?

    • PHP
    • pcntl
    • posix
    • Fibers
  9. 01php-memory-labmemory · fork · copy-on-write · mmap · FFI

    Memory from PHP's side: RSS, garbage collection, fork() and copy-on-write, mmap, shared memory, a shared-memory ring buffer, FFI and native memory.

    What actually happens to memory after fork()?

    • PHP
    • FFI
    • shmop
    • SysV IPC
    • sockets
From php-mini-cache/src/EventLoop/SelectLoop.php — one pass of the event loop abridged
public function tick(?float $timeoutSeconds): int
{
    $this->forgetClosedStreams();

    $read = array_map(static fn (array $entry) => $entry[0], $this->readListeners);
    $write = array_map(static fn (array $entry) => $entry[0], $this->writeListeners);

    $wait = $this->shorterWait($timeoutSeconds, $this->timers->nextDueIn($this->clock->now()));
    $ready = $this->waitForReadiness($read, $write, $wait);
    $this->timers->tick($this->clock->now());

    // stream_select() narrows both arrays to whatever became ready.
    foreach ($read as $stream) {
        $id = get_resource_id($stream);

        // An earlier callback in this very loop may have closed this stream.
        if (is_resource($stream) && isset($this->readListeners[$id])) {
            ($this->readListeners[$id][1])($stream);
        }
    }

    // … the same for writable streams, then busy/idle time metrics.

    return $ready;
}

Architecture, system design and algorithms

Four labs with seven chapters each. Every chapter is an implementation with tests, a deterministic experiment and a benchmark; each lab runs one end-to-end scenario.

architecture-lab

One course-enrollment system built seven ways: layered, hexagonal, clean architecture, modular monolith, CQRS, event-driven with an outbox, and DDD bounded contexts — plus a dependency-rule checker.

Where is a dependency allowed to point, and what does a module boundary cost?

  • PHP 8.5
  • SQLite
  • PHPStan level 8

architecture-decision-lab

One trip-booking flow under seven decisions: monolith vs modular monolith vs services, sync vs async, SQL vs documents, database per service, outbox, saga vs two-phase commit, eventual consistency.

What does a distributed transaction cost when you can't have one?

  • PHP 8.5
  • SQLite
  • PHPStan level 8

system-design-lab

Rate limiting, a URL shortener, notifications, a job queue, a distributed cache with consistent hashing, webhook delivery and sharded search — each measured under the same workload.

What keeps a system working under load, failures and data growth?

  • PHP 8.5
  • PHPStan level 8

algorithms-lab

Hash tables and Bloom filters, LRU/LFU caches, graphs, B-trees, consistent hashing, top-K over streams and external sorting — measured for time and memory on real data.

Where does an algorithm stop being a textbook answer?

  • PHP 8.5
  • PHPStan level 8

Problems I worked on

Described without internal names, business details or confidential figures.

Shared code-quality package

systeme.io · 2026

Context
Many PHP repositories — services, Symfony bundles and DTO packages — each kept its own setup of GrumPHP, PHPStan, PHP CS Fixer and CI workflows.
Problem
Rules and tool versions drifted between projects, and every repository maintained the same checks separately.
Contribution
  • Built the core of an internal Composer package that brings the tools, their configuration and the test runners (PHPUnit, ParaTest) to every project.
  • One set of make cq-* targets for three project types — base, bundle and service — run the same way locally, in a pre-commit hook and in CI.
  • Reusable GitHub workflows behind one required check.
  • A Composer plugin that keeps the Makefile include and the agent rules in each project up to date.
  • Integration tests of a service run in a Docker test stack of their own, one per git checkout, so parallel worktrees do not collide.

27 repositories use the package: services, bundles and DTO packages

  • PHP
  • Composer
  • PHPStan
  • PHP CS Fixer
  • PHPUnit
  • ParaTest
  • GitHub Actions
  • Docker Compose
  • Make

Monolith integration tests

systeme.io · 2026

Context
A large Symfony monolith with an integration test suite that runs against real databases in Docker.
Problem
The suite was slow, and the test setup was duplicated across test cases.
Contribution
  • Found where the time went: debug mode and Xdebug in test runs, and real network calls — error reporting and internal APIs — made from inside tests.
  • Replaced those calls with test doubles, enabled OPcache for CLI runs and added parallel runs with ParaTest.
  • Added a Doctrine query counter, so tests can assert how many queries a code path makes.
  • Introduced a shared bootstrap for integration tests, split the fixtures and moved test service configuration out of the main config.
  • Gave each git checkout its own test stack, so several worktrees can run the suite at once.

14× faster integration test suite

  • PHPUnit
  • ParaTest
  • OPcache
  • Doctrine
  • Docker Compose

Central catalog service

Innovation Group · 2021–2026

Context
Several high-traffic consumer products shared one catalog, kept in a central service and distributed to the products over RabbitMQ.
Problem
The service had not reached production, ran on an outdated stack, and had to stay maintainable while features were added.
Contribution
  • Took the service to production and integrated it with the products one by one.
  • Moved it to CQRS.
  • Upgraded it to a supported PHP and Symfony stack.
  • Added a log of every change, bulk editing, and progress reporting for asynchronous operations.
  • Moved per-product CSV files from Docker volumes to S3, which stopped deployments from hanging.
  • Reduced the memory use of bulk commands, and added tests and code-style checks to GitLab CI.
Central catalog: the catalog service publishes changes to RabbitMQ, each product consumes them; per-product CSV files are kept in S3. Catalog service · CQRS S3 · CSV RabbitMQ Product A Product B Product C
  • PHP 8
  • Symfony
  • CQRS
  • RabbitMQ
  • AWS S3
  • GitLab CI

Performance and infrastructure cost

Innovation Group · 2021–2026

Context
The products ran on rented cloud databases, Redis and RabbitMQ, where load sets the bill.
Problem
Defects in application code raised load and cost, or delayed updates between services.
Contribution
  • Fixed a catalog query that had forced the database to scale up; it returned to its previous size.
  • Introduced primary/replica databases so capacity, and the bill, follow the load.
  • Helped find the bug that kept Redis at 100% load; it returned to its previous level and cost.
  • Fixed uncontrolled message generation in RabbitMQ that delayed updates to consumers, and reworked event handling so one failing listener no longer brings down the rest.
  • Enabled OPcache across services and moved a homepage to RoadRunner.
  • Configured preloading and JIT; after that the full test suite ran 10× faster.

10× faster full test suite after configuring preloading and JIT

  • Redis
  • RabbitMQ
  • OPcache
  • JIT
  • RoadRunner

Catalog search

Innovation Group · 2021–2026

Problem
Users search the catalog from the homepage, often with transliterated queries or with the wrong keyboard layout.
Contribution
Built site-wide search with relevance ranking, transliteration and keyboard-layout correction. Later built a separate search service on Swoole and Elasticsearch/OpenSearch, which made search faster.
Search request path: the homepage calls a separate search service on Swoole, which queries OpenSearch. Homepage Search · Swoole OpenSearch
  • PHP
  • Swoole
  • Elasticsearch
  • OpenSearch

Registry data ingestion for XFirm and CheckPerson

Press Index · 2017–2018

Context
Two products built on public registry data about companies and sole proprietors: counterparty checks and checks on individuals.
Problem
Registry data arrives as archives of XML documents that have to be parsed, validated and made searchable.
Contribution
Built the parser service. It consumed RabbitMQ messages naming an archive, downloaded the archive from Hadoop, lazily mapped records to JAXB models generated from XSD, handled invalid records such as a missing taxpayer ID, and stored the result as JSON in Elassandra (Elasticsearch + Cassandra).
Registry ingestion: the parser service takes an archive name from RabbitMQ, downloads the XML archive from Hadoop and stores the parsed records as JSON in Elassandra. RabbitMQ Parser · JAXB Elassandra Hadoop · XML archives
  • Kotlin
  • Java
  • Spring Boot
  • RabbitMQ
  • Hadoop
  • Elasticsearch
  • Cassandra

Universal electronic queue

Integrix · 2016–2017

Context
Booking appointments with public institutions through the web and mobile apps.
Problem
Each queue provider exposed a different API — SOAP, REST and others.
Contribution
Worked on a RESTful service that offers one API over all providers. A server module routes each request to a plugin loaded from a plugins directory; every provider is an implementation of a shared Plugin interface, for example a SOAP adapter for SofTrust. The service also runs standalone for organizations without a queue system.
Electronic queue: web and mobile apps call one REST API; the server routes each request to a provider plugin, such as a SOAP adapter, or to its own queue. Web / mobile apps REST · single API SOAP plugin REST plugin Built-in queue
  • Java 8
  • Spring Boot
  • Maven
  • Flyway
  • PostgreSQL
  • PL/pgSQL

Microservices for a neural-network training platform

Bell Integrator · 2018

Context
A microservice system on AWS for training neural networks.
Contribution
Worked on two services: an upload service that stored users' training files in Amazon S3, and a service that owned user data, subscriptions and purchases.
Two microservices: the upload service stores training files in Amazon S3; the user service keeps user data, subscriptions and purchases in PostgreSQL. Upload service Users · subscriptions Amazon S3 PostgreSQL
  • Java 8
  • Spring Boot
  • Spring Cloud
  • JPA/Hibernate
  • Flyway
  • PostgreSQL
  • AWS S3

Anti-plagiarism system

Kostanay University · 2014–2016

Problem
Check theses for borrowed text without buying a commercial product.
Contribution
Designed and built the system: a PHP server with MySQL full-text search and shingle-based comparison behind a REST API, a web interface for quick checks, and a Java Swing client for batch checking, adding documents to the corpus and exporting reports to Excel.
Anti-plagiarism system: a web interface and a Java Swing client call the PHP server over REST; the server compares documents with MySQL full-text search and shingles. Web interface Java Swing client PHP · shingles MySQL · FTS
  • PHP
  • Java Swing
  • MySQL
  • REST

FASM Editor

2011 · open source since 2020 · GitHub

Context
A personal project from the time I was learning x86 assembly to read compiled programs in OllyDbg and solve crackme challenges.
Problem
I wanted an editor for the flat assembler (FASM) that helped me write and understand assembly code.
Contribution
Built it in Delphi: a syntax analyzer, highlighting, code completion, and generation of export lists from DLLs. Shared it with the assembly-programming community.
FASM Editor: project tree, assembly code with completion, code explorer and hex dump
  • Delphi
  • x86 assembly
  • FASM
  • OllyDbg
  • reverse engineering

Car dealership sales system

Desktop application · 2009–2010

Context
A complete information system for a car dealership, built as a study project. I designed it around real business processes: from incoming cars and stock management to contracts and sales.
Contribution
  • Built the application on my own in Delphi with MS Access and ADO.
  • Implemented user authentication and access control for each part of the system.
  • Designed the reference data and operations for contracts, customers and suppliers, cars, employees and stock.
  • Implemented incoming deliveries with car photos, and sales with the car picked straight from stock.
  • Built the reporting: price lists, stock levels, purchase and sales ledgers, statistics for a chosen period.
  • Added export of a car's specifications to MS Word.
  • Implemented database backup and archiving for the administrator.
  • Delphi
  • SQL
  • ADO
  • MS Access

Earlier projects

  • ownRadio — REST backend for a music app with iOS, Android and Windows clients that cache music for offline listening (Java, Spring Boot, PostgreSQL).
  • Internal university software — a task tracker with WebSocket updates, a correspondence registry, an intranet portal (Java, Spring, PHP, MySQL).
  • Online store for computer hardware — GitHub (Java, Spring MVC, Spring Security, JPA).
  • Online library — GitHub (Laravel, Vue, PostgreSQL, Elasticsearch, MongoDB).

Career

  1. Apr 2026 — present

    Senior PHP Backend Engineer · systeme.io

    A high-load SaaS platform for running an online business; customers worldwide, mostly in Europe and the US.

    Backend work on the CRM and on account flows in a large Symfony monolith:

    • CRM deals: stage history, one deal per contact in a pipeline enforced by the database, amounts stored in minor units with per-currency ranges, access rules for assistants, deal search and filters.
    • Built the core of the shared code-quality package used across the company's PHP projects (see Selected work).
    • Rolling out strict_types across the codebase step by step.
    • Made the integration test suite 14× faster and gave each git checkout its own test stack (see Selected work).

    Work daily with coding agents (Claude Code, Codex) and set up automated Codex review for pull requests in CI.

    • PHP
    • Symfony
    • PostgreSQL
    • Docker
    • GitHub Actions
    • Claude Code
    • Codex
    • Sentry
    • Grafana
    • Loki
  2. Jun 2021 — Mar 2026

    Senior PHP Developer · Innovation Group, Odesa

    Several high-traffic consumer web products sharing a central catalog service, integrated over RabbitMQ.

    • Took the central catalog service to production and moved it to CQRS.
    • Upgraded services through PHP 8.1–8.3 and Symfony 5.4–6.4.
    • Brought database and Redis load and cost back down by fixing the defects behind them.
    • Built catalog search, then a separate search service on Swoole and OpenSearch.
    • Made tests and code-style checks required in GitLab CI; aligned local Docker with production.
    • PHP 8
    • Symfony
    • RabbitMQ
    • Redis
    • OpenSearch
    • Swoole
    • RoadRunner
    • Docker
  3. Jan 2021 — Apr 2021

    Senior PHP Developer · COMS, Moscow

    Supported a monitoring system for network equipment that detects, diagnoses and reports failures.

    • PHP
    • Symfony
    • MySQL
    • Redis
    • RabbitMQ
    • Docker
  4. Jan 2020 — Dec 2020

    Senior PHP Developer · NameSilo, USA

    Supported a domain name search and registration platform.

    • PHP
    • Yii
    • Symfony
    • MySQL
    • Redis
    • Docker
  5. Oct 2018 — Oct 2019

    Senior PHP Developer · Virtual Health, New York

    Developed a healthcare web platform (NextLevelHealth).

    • PHP
    • Symfony
    • Yii 2
    • MySQL
    • Redis
    • Elasticsearch
    • RabbitMQ
  6. Apr 2018 — Sep 2018

    Senior Java Developer · Bell Integrator, Moscow

    Microservices for a neural-network training platform on AWS.

  7. Sep 2017 — Mar 2018

    Kotlin Developer · Press Index, Yekaterinburg

    Data aggregation services over company and sole-proprietor registries.

  8. Oct 2016 — Aug 2017

    Java Developer · Integrix, Volgograd

    An electronic queue service and the ownRadio backend.

  9. May 2014 — Oct 2016

    Software Engineer · Kostanay Engineering and Economics University

    Internal automation software, including the anti-plagiarism system.

Education

  • MSc, Computer Engineering and Software · Kostanay Social and Technical University · 2010–2012
  • BSc, Computer Engineering and Software · Kostanay Engineering and Pedagogical University · 2007–2010
  • INTUIT certificates: The PHP Programming Language, Advanced Java Programming, Introduction to MySQL

Engineering Lab book

My study notes, written in Russian from the tagged code of each lab. English notes are not published yet.

Engineering Lab

54 chapters across five labs: PHP Systems Lab (26), Algorithms Lab, Architecture Lab, Architecture Decision Lab and System Design Lab (7 each).

PHP Concurrency course

38 lessons, each a folder with an explanation, an ASCII diagram and a runnable main.php.