Alexander Gomanov Home Contact
RU EN

Architecture cases

Architecture and engineering case studies

Every case answers the same questions: what the system and the problem were, which constraints applied, which hypotheses and alternatives were considered, what was chosen and why, what I did personally, who implemented it, what the actual outcome was, and what the decision cost.

Each case carries a status, so plans are never presented as results: completed — done and accepted; in progress — decision made, implementation under way; planned — prepared but not yet executed.

Sections: Architecture & platform  ·  Reliability  ·  Service leadership


SimpleOne · Head of Infrastructure Department · since Feb 2026

Architecture and platform

The product ships to customers on-premises and runs as an HA cluster on 20+ servers (Docker Compose + Ansible). My work here is architecture decisions for the product’s infrastructure — storage, the path to Kubernetes, supported operating systems — and the infrastructure for agentic software development.

20+criteria in the S3 backend selection matrix
15microservice repositories audited for Kubernetes readiness
~8 TiBof production data in the S3 migration plan (1.8M objects)
01Agentic engineering · infrastructurepilot

Infrastructure for agentic software development: where the AI agents run

Context

SimpleOne is introducing a development process in which AI agents carry a task through its stages — from inception to operations — while people make the calls at quality gates. A cross-functional group of about 13 people drives it: developers, architects, infrastructure and management. The agents need a working environment with access to code, corporate systems and staging environments — and no access to anything else. That part is mine.

Constraints
  • agents are isolated by the environment, not by prompts: permissions, network and tools are restricted at the infrastructure level
  • code never leaves the company perimeter, secrets stay out of the agents’ environment, access only through the corporate VPN
  • only a human deploys to staging; agents get no cloud credentials
  • CI/CD and staging are shared with the rest of engineering; the pilot runs until mid-November 2026
Investigation
  • evaluated an open-source agent orchestrator on a real infrastructure task: deployed it, ran the task through its kanban flow, fixed failures in the CLI adapter and presented the results to the group
  • an open architecture question is where an agent validates its code: by editing directly on a staging environment, or through CI. I proposed having CI build images from the agent’s branch and swap the containers on staging. We agreed to decide based on measurements; I took the baseline — a push → image → deploy cycle of ~12–15 minutes — from CI history
Architecture
  • each engineer gets a lightweight always-on VM with just the agent CLI and repositories; the IDE connects over SSH. No staging environments run on the VM — agents reach them through MCP
  • agent plugins are enabled centrally and identical for everyone; the plugin catalog is read-only on the VM
  • the corporate platform is exposed through an MCP server over HTTP with OAuth; agents can only read, and write tools are disabled on the VMs
  • GitLab access uses least-privilege tokens: agents can open merge requests and push to feature branches, but not to the main branch
  • the deploy trigger token lives in a secrets store, not with the agent; the bastion and MCP sit in a dedicated network segment with firewall rules defined as code
My contribution
  • I own the infrastructure track in the initiative’s core group
  • deployed the working VMs for pilot participants, with nightly snapshots, GitLab access and connection scripts
  • set up the shared MCP server for the corporate platform with OAuth and TLS: added login rate limiting and a separate instance for the test environment, and fixed the daily re-login issue (refresh tokens)
  • created the pilot staging environments and registered them in the CMDB; carved out the network segment and defined the firewall rules as code
  • wrote the “Agent Environment Architecture” document and the engineer onboarding guide; designing the contract for the staging-preparation agent
Implementation

The process, the plugin catalog, the phase orchestrator and the analyst, developer, QA, UX and technical writer agents are built by other members of the group. The infrastructure environment is my area; a CI engineer is implementing the staging-preparation agent against my contract. I use AI agents myself for investigation and automation.

Current status

Environment MVP

shown at the acceptance demo; engineer onboarding went through without issues (October 2026)

  • the pilot is running with one team; an end-to-end run of a task through the whole process is the next step
  • process metrics — gate rejections, cycle time, cost per task — are defined but not yet measured. It is too early to claim any effect
Trade-offs
  • lightweight VMs without staging environments are cheaper and easier to run, but the validation loop depends on the shared CI queue and a remote staging environment
  • read-only MCP limits agent autonomy: writes go through a human at the gates. Slower, but safer
  • “validate on staging or through CI” stays open until the measurements are in — I chose not to settle it by opinion
Stack
AI AgentsClaude CodeMCPOAuthGitLab CIDockerLinuxNetwork segmentation
02Storage · ADRselection approvedrelease in progress

S3 storage for on-prem deliveries: selecting SeaweedFS through ADRs and planning the migration

Context

The product ships to customers with built-in S3 storage, one instance per installation. It is used by the main application, several Go services, an Ansible playbook, database backup tooling, the container registry and the corporate messenger; production holds ~8 TiB across 1.8M objects. The S3 backend in use changed its open-source edition policy: some features moved to the Enterprise edition and the console was removed from the community version. Shipping it to on-prem customers became risky, both legally and in light of import substitution requirements.

Constraints
  • existing storage clients must not need code changes — only a new endpoint and credentials
  • a license that allows shipping to customers, with no feature-gating of critical functions
  • AMQP (RabbitMQ) event notifications, bucket lifecycle, IAM policies, SSE-KMS, Prometheus metrics, path-style addressing and SigV4
  • on-prem operation at customer sites, including small installations
Investigation
  • built a requirements matrix of 20+ criteria: data/control plane, event notifications to AMQP, lifecycle, IAM bucket policy, SSE-KMS, metrics, path-style, SigV4, compatibility with three S3 clients and the backup tooling
  • compared three options: status quo — 100% of the matrix but a licensing blocker; option A — rejected (no AMQP events or SSE-KMS, limited lifecycle, AGPL); SeaweedFS — Apache 2.0, ~95% of the matrix, events to RabbitMQ, compatible with every client
  • compared storage layouts: replication (2× overhead, from 2 nodes) vs. 10+4 erasure coding (1.4× overhead, but from 14 nodes), with a recommendation per data group
Decision

SeaweedFS — the only open-source option without feature-gating that covers ~95% of the matrix and works with the existing clients. The decision is recorded in two ADRs: storage selection (June 2026) and live migration (August 2026). The migration follows a 10-step plan: sync with checksum verification, a read-only cutover window, smoke checks and a burn-in period; the old backend is removed only after the data has moved.

My contribution
  • both ADRs, the requirements matrix, the comparison of options and the storage layout analysis
  • the test plan: 15 spike cases (go/no-go) and 15 PoC/production cases — multipart uploads over 10 GB, presigned URLs with header overrides, lifecycle, SSE-KMS with an external KMS, a 30-minute load run comparing p99 latency
  • the production migration plan with verification steps
Implementation

Infrastructure engineers and product teams are implementing the playbook integration, the migration mechanism and the automated tests. A test migration was demonstrated on staging in August 2026.

Outcome

Apache 2.0

SeaweedFS approved as the product’s S3 backend — the licensing risk is resolved at the decision level

  • selection closed in August 2026; a test migration was shown on staging
  • in progress: inclusion in a platform release, with acceptance criteria of side-by-side deployment with the old backend, data migration, and no degradation when one availability zone is lost
  • the ~8 TiB production migration has not happened yet — it is planned after the release
Trade-offs
  • ~5% of the matrix is not covered directly: for example, SeaweedFS exposes S3 events differently, so asynchronous upload processing needs a separate check for an ObjectCreated equivalent — an open release risk
  • erasure coding saves capacity but needs at least 14 nodes, so the layout is chosen per data group and installation size rather than one-size-fits-all
  • replacing the backend across all deliveries means a migration at every customer site and a new technology for operations and support
Stack
SeaweedFSS3 APIRabbitMQAnsibleWAL-GresticrclonePrometheus
03Troubleshooting · MinIO · filesystemroot cause confirmedcode fix — with dev team

Broken images after deployment: directory traversal order on ext4 vs. XFS

Context

April 2026, validating product compatibility with RED OS. After a clean deployment of a single-node environment, the portal showed broken images: the covers bucket in MinIO contained XML NoSuchKey error responses instead of PNGs, and the thumbnails bucket was empty. The same product build deployed correctly on Oracle Linux.

Constraints
  • it reproduced in one environment only, and the environments differed in many ways: OS, Docker version, filesystem
  • the issue blocked support for the new OS
  • the AI agent was working from an outdated copy of the source code, so its conclusions had to be double-checked
Investigation
  • ruled out hypotheses one by one: network and DNS, Docker version (28.3 vs. 24.0), the framework’s migration tracking. The AI agent’s hypothesis about a database not being wiped did not hold up under testing
  • together with the AI agent, traced the data path through the initial migration: PHP code walked the archive’s directories with readdir() without sorting. The order of that traversal depends on the filesystem — ext4 returns entries in hash order
  • the key difference between environments was the host filesystem: ext4 on RED OS, XFS everywhere else
  • on its own this did not corrupt data. It took two more defects: thumbnails were routed to the covers bucket, and the downloader ignored HTTP status codes, so the archive contained “baked-in” XML errors. With one traversal order, the second pass overwrote the PNGs with XML
Decision

This is neither a Linux kernel bug nor a MinIO bug: POSIX does not guarantee readdir() order, and the defect is in code that relied on it. Simply sorting would not have helped — alphabetically, covers always come before thumbnails, so images would have broken everywhere. Recommendations: fix the storage mapping for thumbnails, check HTTP status on download, and rebuild the archives with baked-in errors. Until the code is fixed, use XFS on product hosts.

My contribution
  • led the investigation and hypothesis triage; localized the cause together with the AI agent
  • ran a single-variable experiment: re-provisioned the environment’s disk with XFS, keeping everything else unchanged
  • explained the root cause to the CTO and the team and wrote the code and infrastructure recommendations
Implementation

The code fix was handed over to the development team; I cannot confirm it has shipped. The infrastructure measure is in use: environments for new operating systems are rebuilt on XFS, and a recommendation has been prepared for the deployment documentation.

Outcome

ext4 → XFS

after the filesystem change, images came back — the hypothesis was confirmed experimentally

  • the blocker for the new OS was removed with an infrastructure change, without touching product code
  • the cause and mechanism are documented, and the code defects are written up for the developers
Trade-offs
  • XFS works around the problem but does not remove it: until the code is fixed, it depends on an ordering nothing guarantees
  • traversal order was not compared directly on the two filesystems — the confirmation came from an experiment, not from tracing
Stack
MinIOS3 APIPHPext4XFSRED OSOracle LinuxDocker
04Platform · Kubernetesaudit completemigration in progress

Kubernetes readiness: auditing 15 microservices and building the migration backlog

Context

The product is deployed with Docker Compose and Ansible; the strategic goal is Kubernetes. The microservices were written for Compose: networking through an external Docker network, DNS through Docker’s embedded resolver, database and broker settings defaulting to 127.0.0.1/localhost. In Kubernetes these assumptions fail silently — a service starts but cannot reach its dependencies. We needed to know what blocks the migration and how large the change is before planning team work.

Constraints
  • 15 repositories across different stacks: Go services, a PHP monolith, HAProxy/Nginx configs, integration services
  • product teams make the changes, so the audit had to produce a clear backlog rather than a list of remarks
Investigation
  • static analysis of all 15 repositories, starting from the hypothesis that most blockers are Compose networking assumptions
  • findings: 12+ hard-coded DNS names and IPs, 7+ loopback defaults for databases and brokers, a Docker-specific resolver in the proxy, health checks bound to localhost instead of the pod IP
  • a separate class of problem: a peer service address compiled into the code — that needs refactoring, not a config change
  • findings split into migration-critical (blocks startup) and low-priority (dev/CI/test)
Decision

Replace localhost defaults with mandatory environment variables and fail fast on startup: a service without a valid dependency address should fail immediately and visibly rather than run half-broken. Replace the Docker network with Kubernetes Services, move hard-coded gRPC addresses into configuration, and point health checks at the pod IP.

My contribution

Ran the audit, classified the findings and wrote a document with a specific recommendation for each of them.

Implementation

The findings went to the head of platform development and became stories in the platform and infrastructure teams’ backlogs. The infrastructure team built the cluster and deployed the product sandbox.

Outcome

20+ blockers

found before the migration, not in production

  • the document was adopted as the architectural basis for planning the Kubernetes migration
  • a Kubernetes sandbox of the product was demonstrated in August 2026: pods running, failover when a worker node is shut down, a load test with no performance loss
  • the next stage — delivery pipelines into Kubernetes and the MVP cutover — is not finished yet
Trade-offs
  • fail-fast makes configuration stricter: errors surface at startup, but every installation has to be moved to explicit variables carefully
  • static analysis does not catch runtime-only issues — the sandbox and load tests cover those
Stack
KubernetesDocker ComposeAnsibleGoPHPHAProxyNginxgRPC
05Process · OS supportpolicy adopted

OS support policy: load testing as a mandatory gate

Context

Enterprise customers in Russia ask for support of domestic Linux distributions. Adding a new OS used to be informal: a distribution landed on the supported list without a full validation cycle — load testing was skipped, distributed and offline modes went unchecked. The risk was that a customer would discover an incompatibility during deployment.

Decision and my contribution
  • wrote the policy: 3 OS statuses (Supported / Deprecated / Removed) and 4 stages — Assessment → In Progress → Testing → Released
  • defined the mandatory inputs: the OS’s Ansible facts, Docker/containerd/Compose versions, an agreed load-testing scope, known risks; test environments are provisioned automatically via pipeline/ChatOps
  • defined the outputs: MR, CI jobs (pre-check / deploy / post-check), smoke/E2E, k6 and Grafana results, known limitations
  • made load testing a mandatory gate for Supported status and defined re-validation triggers: changes to the OS version, Docker pins, repositories, kernel/cgroup defaults, CA/GPG/proxy or the baseline k6 scenario
Outcome

Gate

an OS counts as supported only after every stage is recorded in code, the ticket and documentation

  • the policy was approved by the CTO in August 2026
  • the first OS going through the full cycle under the policy is Astra Linux (in progress)
Stack
AnsibleDockerk6PlaywrightPrometheusGrafanaGitLab CI
06Storage · capacityaudit complete

Object storage audit — 18 buckets, 400+ GB

Context

An external S3 store holds release artifacts, database backups, CI artifacts and data for supporting services. Nobody tracked the actual volume, so capacity planning was guesswork.

What I did
  • ran a read-only inventory of 18 buckets: size, object count, last write, content type
  • found that ~75% of the volume (300+ GB) was release artifacts going back to 2022 with no retention policy, and that some backup repositories grew without retention limits
  • found buckets with no writes for 1.5–4 years (19+ GB in total) and duplicate rebuilds of the same minor release
  • prepared prioritized recommendations: release retention, forget --prune (restic), wal-g delete retain, lifecycle expiration for temporary artifacts, per-bucket monitoring
Outcome

up to 180 GB

estimated reclaimable space, plus 19+ GB in inactive buckets

  • unbounded growth of backup repositories caught before it became a capacity incident
  • no downtime and no data changes during the audit

Reliability Engineering · ITGLOBAL.COM

Production reliability

Managed Services at ITGLOBAL.COM operated customer systems: Linux/Windows, databases, monitoring, application services. These cases are about root cause analysis, observability and turning manual operations into reproducible automation.

07PostgreSQL · Patroni · RCAcompleted

PostgreSQL/Patroni: from incident to reproducible cluster configuration

Context

October 2025, a major incident with a DNS service. The review showed that part of the PostgreSQL/Patroni configuration had been changed by hand on a node and never stored in the distributed configuration store (DCS/etcd). When the cluster failed over, replication broke. At the same time, some service health models were out of date, some alerts were pure noise, and knowledge of the failure modes lived with individual engineers.

Constraints
  • a production service for a managed services customer: the review and the fixes must not introduce new risk
  • many parties — engineers, adjacent teams and the service desk — each holding part of the picture
Investigation

Rebuilt the timeline and separated symptoms from cause. The symptom was the service and replication failure after failover; the cause was drift between the node’s actual configuration and what the DCS held — manual changes did not survive the failover.

Decision

Cluster configuration goes only through DCS/etcd and infrastructure playbooks, with no manual changes on nodes. Add a dedicated health model and alerting for the DNS service, and rework the PostgreSQL and PHP-FPM alerts.

My contribution
  • documented the timeline and root cause in the post-incident review
  • coordinated communication between engineers, adjacent teams and the service desk
  • defined the corrective actions and drove them from manual operations into cluster configuration and automated deployment
  • organized the refresh of service health models
Implementation

Engineers on the Managed Services team made the changes to DCS/etcd, the playbooks and the monitoring.

Outcome

80%

of service health models brought up to date

  • critical configuration no longer depends on a manual change to a specific node
  • a reproducible procedure for restoring and re-initializing the cluster
  • incident findings became concrete automation changes rather than staying in a document
Trade-offs

Banning manual edits slows down urgent changes: every configuration change has to go through the DCS and playbooks. That is a deliberate price for predictable behavior after failover.

Stack
PostgreSQLPatronietcdAnsiblePHP-FPMMonitoring
08Monitoring · 24/7 SLAcompleted

Custom monitoring and alerting with a 7-minute 24/7 response

Context

A customer needed more than catalog monitoring: a service built around their critical systems with guaranteed 24/7 incident response. Nothing in the portfolio offered that response level, and ad-hoc arrangements gave neither predictable quality nor clear economics.

What I did
  • gathered requirements, monitored objects and critical scenarios; agreed thresholds and priorities
  • designed the monitoring and alerting for the customer’s services and led their implementation
  • built in a 7-minute 24/7 response SLA: on-call rotation, routing and escalation
  • packaged the service: scope, billing units, SLA matrix and calculator; ran activation and the handover to operations
Outcome

7 min

response SLA, 24/7

+48%

revenue per engineer hour

  • a reusable template for similar custom services, from requirements to operations

ITGLOBAL.COM · Head of Managed Services

Running services and an engineering function

The Managed Services unit had 13 engineers (DevOps, SRE, Managed Apps, Linux/Windows, DBA). These cases show how technical decisions get an owner, a process and an economic model.

−88%team backlog debt: 286 → 34 items
5.9 daysmedian lead time (was 7); p90 — 19 days (was 28)
2×DevOps service revenue from a key client
09Operations · ITSM/SDLC

A manageable operating model for an engineering unit

Context

Work status had to be chased with individual engineers, operational and project work were mixed, engineers picked their own next task, and there were no shared metrics for queues, load or throughput.

What I did
  • separated operational work (ITSM) from project work (SDLC), with dedicated queues for incidents, requests, problems and changes
  • introduced priority-based queue processing and expectations for keeping statuses current
  • introduced metrics for queue age and size, load, effort and lead time, and tied them to the monthly team KPI
Outcome

−88%

backlog debt: 286 → 34 items

  • median lead time from 7 to 5.9 days, p90 from 28 to 19 days
  • work status visible in ITSM/SDLC without asking anyone
10Team · structure

Restructuring a unit of 13 engineers

Context

Engineers were grouped by historical specializations, responsibilities overlapped, and the manager remained the entry point for a large share of operational questions.

What I did
  • split the unit into three teams — DevOps, SRE and Managed Apps — with leads and assigned services
  • built a role and FTE model for capacity planning and a DevOps competency matrix
  • introduced quarterly performance reviews and regular one-on-ones
Outcome

3 teams

operational and technical decisions delegated to the leads

  • load could be planned by team, not just by person
  • new DevOps and SRE projects started alongside day-to-day operations
11Product · services

Managed Services portfolio: Monitoring, Logging, Backup, OS

Context

Service descriptions did not pin down scope, limits or each side’s responsibilities — a risk in presales, activation, operations and billing.

What I did

Productized four managed services — Monitoring, Logging, Software Backup and Managed OS: service descriptions in Russian and English, SLAs and responsibility matrices, activation requirements and questionnaires, billing units, presales calculators, XS–XL engineering-hour bundles.

Outcome

4 services

with SLAs, measurable billing units and repeatable activation

  • sales, architects and operations share one understanding of service boundaries
  • less risk of unpaid work outside the SLA
12Economics · P&L

Unit economics and billing automation

Context

Revenue, billed services, effort and team cost lived in different systems, so nobody could tell whether a given customer or service was profitable.

What I did
  • combined billing, 1C, ITSM and timesheet data into the unit’s first P&L model with plan-vs-actual and per-service margins
  • automated part of the monthly billing reports and set up regular effort analysis per customer
Outcome

On one contract the actual cost of work exceeded what the customer paid. After the service scope was revised:

68%

financial effect relative to the engineering capacity freed up

  • stopped unpaid work amounting to ~30% of the effort on the contract
13Commercial · pricing

Commercial model for a DevOps service

Context

For a large product customer, the volume of DevOps work and the payment model had drifted apart: one contract mixed development, maintenance, consulting and infrastructure support.

What I did
  • audited tasks, effort and infrastructure objects, and split the work into Build and Support
  • sized the team and FTE shares, and designed T&M and bundle pricing with per-role rates
  • prepared a service matrix and a cost calculator for the supported infrastructure
Outcome

2×

DevOps service revenue from the key client


Engineering approach

How I make technical decisions

  1. establish the actual state of the system — inventory, read-only audits, metrics;
  2. turn requirements into testable criteria — a matrix, go/no-go;
  3. weigh the alternatives and record the decision with its trade-offs (ADR);
  4. test the hypothesis before production — spike, PoC, load test;
  5. plan migrations together with verification and a rollback path;
  6. turn manual fixes and incident findings into code and configuration.

AI agents speed up investigation, code analysis and routine automation. Framing the problem, validating the conclusions and owning the decision stay with me.

P.S. Looking for an infrastructure or platform architect — to select a technology, prepare a system for Kubernetes or get to the bottom of a hard failure? Get in touch. For an external project or review, see gomanov.pro → (in Russian).