What a Software Architect Actually Does: Constraints First, Trade-Offs Chosen, Decisions Written Down
One small Relay task, 'email the customer when a ticket is resolved', asked two ways: how do I build it, and what happens when the mail provider is down. Constraints shrink the options to a short list, the inside-the-request vs queue trade-off becomes one written sentence, and a five-question check closes the design.
What you will learn
- Tell the questions a senior developer asks from the ones an architect asks about the same task
- Spot which decisions are cheap to undo and which are not
- Write constraints down before comparing options, and state a trade-off in one sentence
- Run a five-point check before calling a design done
Before you start
- Some experience building and shipping a web application
An architect is not just a senior developer with a bigger title. The work is different. It is trade-offs written down, constraints made explicit, and decisions that survive a team. This article walks through that with one small task from Relay, the support desk app built through the course.
Same task, two questions
The task: when a ticket is resolved, email the customer.
| A senior developer asks | An architect asks |
|---|---|
| Which mail library? | What if the mail provider is down? |
| Which class sends it? | Who pays when the volume doubles? |
| How do I test it? | Who looks after this in a year? |
| Answer: working code | Answer: a decision, with reasons |
Both sets of questions matter. The second set is easy to skip, and it is the one that gets expensive.
The cost of changing your mind
Decisions are not equally easy to undo, and most of the cost hides in the ones that look small on the day.
Once those are set, every change is a negotiation with the past.
Write the constraints down first
Start with every design that could possibly work, then let each limit remove some:
- Time: three months to launch. Designs that take longer drop out.
- The team: four developers. A design that needs ten teams drops out, however nice it looks on a whiteboard.
- The existing system: PostgreSQL is already running, so this is not a blank page.
- The budget: one small server to start with.
What is left is a short list, and only now can two options be compared fairly. Reading a requirement this way is covered in more depth in reading a business requirement like an architect.
A trade-off, written down
Send the email inside the request, or put it on a queue (a waiting line for messages that another worker picks up)?
- Inside the request: simple and quick to build. When the mail provider is slow, the ticket is slow too.
- On a queue: a mail outage cannot block a ticket. There is one more part to run.
Whichever way you go, you pay somewhere. So the architect writes it as one sentence: "We chose the queue, because a slow mail provider must not slow a ticket, and we accept one more part to run." A choice, a reason and the price. Anyone reading it knows what you were thinking.
A decision has to outlive its author
Emma decides to use a queue for emails. If that stays in her head, then when she moves to another team and Noah picks up the code, his question "why a queue?" has no answer. Maybe someone removes it to simplify things, and a few weeks later the old problem is back. If it is written next to the code with the reasons, Noah reads the note and the answer is right there. The format for that note is the architecture decision record.
Stay close to the code
An architect who stops touching code starts designing for a team that does not exist. Version one of a design goes to the team, and the team says "this breaks our release process". That feedback is worth a lot. Version two fixes it and fits. A design nobody has tried against real code is a guess.
Four calls an architect keeps making
- Boundaries: does notification belong inside tickets, or on its own? Where you draw lines decides who can change what.
- Data: who is allowed to write the ticket table? One owner, or five?
- Failure: what happens when the AI model is slow? Does the whole ticket screen wait for it?
- Change: could you swap the mail provider in a week, or is it wired into everything?
Each is cheap to decide now and costly to undo later. The first two get their own article: service boundaries and data ownership.
Senior developer and architect, side by side
| Senior developer | Architect | |
|---|---|---|
| Main question | How do I build this well? | Should we build it this way, and what will it cost later? |
| Looks at | A feature or a module | How the parts fit and how they will change |
| Leaves behind | Working, tested code | Decisions with reasons the team can follow |
| Success | It works and it is clean | The next change is cheap and nobody is surprised |
Often this is the same person, wearing a different hat on a different day.
Before you call a design done
- Constraints: which limits did I write down?
- Trade-off: what did I give up, and why is that fine?
- Alternatives: what else did we consider?
- People: who must agree, and who has to work with it?
- Written: where can a new joiner find the reasons?
That is the job: pick the decisions that are costly to change, make them on purpose with the constraints first, and write them down so the team can follow them when you are not there.
StudyEasy AI Community
Learn AI engineering, share what you build, and connect with other learners.
Free resources: lesson files, notebooks and code
Ask questions and join engineering discussions
Meet real people learning and building with AI
Related course on Udemy
FULL STACK JAVA : JAVA + JSP + SPRING BOOT AI + REACT + VIBE
Java 25, JSP, Hibernate, Spring Boot 4, REST APIs, React and Spring AI.View on Udemy ↗: FULL STACK JAVA : JAVA + JSP + SPRING BOOT AI + REACT + VIBE (paid course, opens in a new tab)Related posts
Fallback Models for an LLM App: A Chain That Checks Region and Fit, Flags Degraded Answers and Gets Rehearsed
When the main model goes down, the backup has to be allowed to take the data, able to read the whole request and tested before the bad day. A simulated four-model chain for an EU customer: a 6,000-token request lands on mid-eu, flagged degraded; a 10,000-token request is served by nobody, on purpose.
Back Pressure for LLM Traffic: Bound the Queue, Give Chat Its Own Lane, Count Tokens, Cancel When the Caller Leaves
A bulk upload buries the chat. In a small simulation, one shared queue grows to 199 waiting and the middle chat answer takes 80.2 s. A bound plus a chat lane brings it to 0.35 s while 178 bulk jobs are told to retry in 10 s, and cancelling abandoned calls saves 21,000 wasted tokens.
Load Balancing LLM Traffic: Count the Work, Weigh the Prefix Cache, Check Real Health, Drain Before Deploys
Six GPU replicas, two at 95% and four at 30%: round robin counts requests, and requests aren't equal. In a small simulation, least outstanding requests cuts p95 from 6.52 s to 3.05 s, prefix affinity lifts cache hits to 95% but pushes p95 to 11.45 s, a real health check takes errors from 48 to 2, and draining cuts 0 answers instead of 4.
A Message Queue for Document Ingestion: At Least Once, Leases, an Idempotent Consumer and a Dead Letter Queue
A queue doesn't lose a document, but it can hand one out twice. In a small simulation, a worker crash makes document two go from 3 to 6 chunks and the index holds 11 when the documents hold 8. An idempotent consumer brings it back to 8 with the same two deliveries, and a limit of three tries moves a poison file to a dead letter queue.
