Distributed Systems at Scale
Event-driven, high-throughput systems that stay real-time under production load: partitioning, messaging, and stream processing with Kafka and Redis.
Software Architect
I design large-scale, real-time systems that stay fast under heavy traffic and honest about what they cost. I also put AI to work in engineering, and I test what it builds beyond the happy path.
Based in Sofia, Bulgaria. Conference speaker and published researcher.
Sofia, Bulgaria · linkedin.com/in/kostovmartin · mkostov.com
Event-driven, high-throughput systems that stay real-time under production load: partitioning, messaging, and stream processing with Kafka and Redis.
Latency, throughput, and availability that hold when traffic spikes: caching, profiling, and resilience designed in before the incident, not after.
TCO, ROI, and infrastructure cost as first-class design inputs, so decisions hold up under real production and budget constraints.
LLM workflows and AI agents in engineering: guardrails, evaluation, and local LLMs alongside hosted models, backed by peer-reviewed research on LLM-assisted optimization.
Making AI-generated code prove itself: integration testing, performance testing, and human review beyond the happy path.
The Offline Years is literary coming-of-age fiction set in Bulgaria before smartphones. Book One, The Circus Money, publishes autumn 2026.
Electronics (MDPI), 2026. Local LLMs propose SQL rewrites and the system trusts none of them: every candidate is empirically validated, so each accepted rewrite provably returns the same results, faster.
Read the paperWhat software really costs: TCO, ROI, hidden engineering costs, risk, and how to put architecture trade-offs in terms stakeholders can act on.
Workshop detailsWhere AI-generated code fails in production, and the integration, performance, and human checks that catch it before it ships.
Workshop detailsHow a high-traffic platform moves bet history at scale: raising throughput while cutting reporting latency, operational risk, and cloud cost.
Read on MediumAn infrastructure migration to AMD EPYC, validated with stress testing: Redis-backed performance held, KPIs improved, and the bill went down.
Read on MediumBooks & fiction
Literary coming-of-age fiction set on the Bulgarian Black Sea before smartphones: friendship, first love, class, migration, and the years nobody photographed.
Book One, The Circus Money, publishes autumn 2026.
A systems architect writing about a boy who understands systems better than people.
Martin Kostov is a software architect in Sofia, Bulgaria. He works on real-time systems designed for the worst minute of the day: high-traffic production where spikes are routine, events never stop arriving, and speed, reliability, and cost all have to hold at once.
He applies one rule to AI in engineering: it has to show its work. His peer-reviewed research in Electronics (MDPI) has local LLMs propose SQL rewrites, then validates each one empirically before it counts. His talks and workshops bring the same habit to the total cost of ownership of software and to testing AI-generated code beyond the happy path.
Away from production systems, he writes fiction. The Circus Money, Book One of The Offline Years, publishes autumn 2026.
A system to scale, a workshop or talk invitation, or a question about the paper or the book? Send a message.
Reach me on LinkedIn (linkedin.com/in/kostovmartin) or through mkostov.com.
Need an experienced hand on a demanding system? , or press Ctrl / ⌘ + P.