Skip to content
Muhammet Şafak
tr

Expertise

Software architect: the role that designs the decision, the boundary and the cost together

I practise architecture not as a collection of patterns but as decisions made in a particular system, with a particular boundary and a particular cost.

years
4

I practise architecture not as a collection of patterns but as decisions made in a particular system, with a particular boundary and a particular cost. For a decision to count as architectural, I have to be able to write down what it closes and what it puts in its place.

My work gathers under three headings. Software Architecture covers service boundaries and critical design decisions, System Design covers how a system scales and stays available, and Event-Driven Architecture covers delivery, repetition and determinism between services. They are different scales of the same work. Systems Architecture is the question that sits across them: how several services, data stores and queues behave together, which no single boundary decision shows on its own. This page covers Distributed Systems from that angle as well.

I do not leave boundaries in a document; I write layers and allowed dependencies into code and check them in CI, because a boundary that lives only on paper erodes. For the deeper pattern narratives and longer architecture pieces, the Engineering section is the place.

What is a software architect?

A software architect decides which parts a system is made of, where the boundaries between those parts are drawn and how they communicate, and makes the cost of those decisions visible up front. Architecture is not the code itself; it is the sum of the decisions that make the code easy or hard to change.

What does a software architect do?

They draw service and module boundaries, weigh options on synchronous versus asynchronous communication, consistency and scaling, pass the decision and its reasoning on to the team, and set up checks so that boundaries do not erode over time. I do this across software architecture, system design and event-driven architecture, by writing down what a decision closes and what it puts in its place.

Recent writing in this area

64 goroutines on four cores: Mutex is 1.40 times faster than a one-way channel, but its p99 is four times higher

When G goroutines on P cores hammer the same shared counter, how many operations a second do sync.Mutex, an owner-goroutine channel and a buffered channel manage, and how do tail latency and fairness of waiting change?

Finding

With 64 goroutines on four cores, sync.Mutex is 1.40 times faster than a one-way channel (10.46 and 7.47 million operations/s) but its p99 wait is 4.00 times higher (294,911 and 73,727 ns). On eight cores the Mutex ranges from 16.27 to 26.25 million operations/s across the two runs (a bimodal cell); the one-way channel holds at 7.31 and 7.32 million. More than half of the cells are flagged in both runs; confidence is low.

measured 34 days ago

Low confidence

Technologies I pair it with

  • RabbitMQ

    Asynchronous delivery between services; the exit door of the outbox relay.

  • Redis

    The fast layer that works alongside the relational store in a cache layer.

  • MySQL

    The store behind cached reads and the outbox table.

  • PostgreSQL

    The database I measured queue-table and index behaviour on.

  • Docker

    Development environment and deployment unit.

  • GitHub Actions

    The CI pipeline where architectural boundaries are checked on every commit.

Frequently asked

8 questions

  • What does a software architect do?

    They define the parts of a system, the boundaries between them and how they communicate, and pass the decision on to the team together with its reasoning and cost. Architecture is not the code itself; it is the set of decisions that make the code easier or harder to change.

  • How long have you worked in architecture?

    Since 2022, 4 years.

  • How do you tell Software Architecture, System Design and Event-Driven Architecture apart?

    Software Architecture covers boundaries and decisions, System Design covers how a system scales and stays available, and Event-Driven Architecture covers delivery, repetition and determinism between services. They are different scales of the same work; this page holds all three.

  • Does moving work onto a queue give you a delivery guarantee?

    No. The outbox keeps a message from being lost but gives you at-least-once; an idempotent consumer suppresses the repetition. A delivered message reaching the same decision is a third guarantee and has to be built separately.

  • How do you judge an architectural decision?

    By what it closes and what it puts in its place. If I cannot write down the cost of a decision, I do not count it as an architectural decision yet.

  • What do you do so architectural boundaries do not erode?

    I do not leave the boundary in a document; I write it into code. Layers and allowed dependencies are declared in a single file and checked in CI on every commit.

  • How do you pass architectural knowledge on to a team?

    By writing the decision with its cost, through TDD and DDD mentoring and through code-review guides. Architecture lives not in documents but in the small decisions a team makes every day.

  • Where can I read the deeper architecture writing?

    In the Engineering section. This page is the short definition of the role and of my approach; the pattern narratives and longer architecture pieces are there.

Let us work together

If you have work in this ecosystem, tell me what you are building and we will talk about how to build it.

Search the site

Start typing to search posts, projects and pages.

Esc to close Powered by Pagefind