Beyond the code: my software architecture talk at PLM
What I told PLM students about software architecture: why working code isn't enough, eight patterns and their costs, and lessons from my Apayao projects.

On October 24, I joined Pamantasan ng Lungsod ng Maynila’s webinar Beyond the Code: The Architecture of Software as Speaker 1. I had 40 minutes to help a room of future engineers think one level above their code. This post is the written version: what I covered, the examples from my own work, and the one habit I hope they keep.

Working code is not the finish line
I opened with a situation most of us have lived through. You build an app. It works, users are happy, version one is done. Then someone asks for a small feature. You add it, and something unrelated breaks. You fix that, and another part starts acting strange. A one-day task takes a week.
The code worked. The problem is that the system became hard to understand and hard to change safely. Usually that’s tight coupling, duplicated rules, or responsibilities scattered everywhere. That’s the gap architecture fills.
Note: Working software is not necessarily maintainable software. That line was on my second slide for a reason.
What software architecture actually is
My definition for the talk: the important structures of a system, and the decisions that connect them. That means the components, what each one is responsible for, what depends on what, and how they talk to each other.
It’s not the same as a tech stack. Two apps can use the same language, framework and database and still have completely different architectures. Those structural decisions shape the qualities people feel:
- Maintainability: when responsibilities are separated, a change stays in one place.
- Scalability: if every request goes through one tightly coupled part, that part becomes the limit.
- Performance: how many hops a request takes and where the data lives decide how fast users get a response.
- Security and reliability: where the rules live, and what happens when a part fails.
These qualities often fight each other. That’s why I kept repeating one word all session: trade-offs.
Small systems and big systems are different animals
Scale isn’t only about more users. What really changes is the number of moving parts. A student org website is one app, built by a few classmates, on one server with one database, deployed all at once. A monolith is perfect there.
An e-wallet or shopping app is payments, orders, search and notifications, each owned by a different team. If all of that shipped as one deploy, the payments team would wait on the search team every release. So big systems split into parts that can ship on their own, and they pay for that independence with networks, contracts and more operations work.
I also showed the 4+1 view model (logical, development, process and physical views, plus scenarios that tie them together), with one piece of advice: you don’t need every diagram. Draw the view that answers the question in front of you.
Eight patterns, and what each one costs
I split the patterns into two groups: three foundations, and five newer patterns built on top of them. The point I wanted students to leave with is that the newer ones are foundations, not legacy. Microservices are still client–server underneath.
The three foundations
| Pattern | What it answers | Good at | Watch out for |
|---|---|---|---|
| Layered / N-tier | How is the code organized? | Clear separation, easy to test | One feature can ripple through every layer |
| Monolithic | How is it deployed? | One codebase, one build, one deploy | Harder to change as it grows; scales as one unit |
| Client–server | How do the parts talk? | Rules and data in one place | The server can become a bottleneck |
They aren’t competing choices. Most systems are all three at once. And monolithic doesn’t mean messy: a monolith can have very clean modules.
Five patterns built on top
- Modular monolith: still one deploy, but each module owns its code and data and only talks to others through a clear interface. For most small and medium teams, this is a strong starting point.
- Domain-driven design: draws those module boundaries around business areas (scholarships, applications, reporting) instead of technical folders.
- Hexagonal / Clean: the business rules sit in the middle, and HTTP, databases and outside APIs plug in as adapters. Adapters depend on the core, never the reverse.
- Microservices: services that own their own data and deploy independently. You take on network failures, distributed consistency and harder debugging. Use them when the benefits justify the cost.
- Event-driven: services announce events (“order placed”) and others react, instead of calling each other directly. You gain independence and accept eventual consistency.
Start from the requirements, not the trend
This was the slide I cared about most. Before choosing a framework or a pattern, ask:
- Who will use it, and how many?
- What problem are we actually solving?
- Who will maintain it, and how many people will work on it?
- What’s likely to change?
- What are the constraints: budget, timeline, security, infrastructure?
The answers point you to the simplest architecture that meets the need. People, then requirements, then architecture, then implementation, then validation.
What this looked like in Apayao
For the personal part of the talk, I shared my work with the Provincial Government of Apayao. We had three systems, and each one got a different design because each had a different problem.
- Provincial website and CMS: a plain client–server setup with Next.js and Strapi. We didn’t build a CMS from scratch. Knowing what not to build is part of good engineering.
- eServices Portal: organized by business domain, so a new government service can plug in without depending on the existing ones. The frontends that don’t need server rendering are SPAs on Amazon S3 and CloudFront. The backend APIs are containerized and stateless and deploy on their own. The public landing site needed server-side rendering, so it got its own deployment.
- Provincial Mining Regulatory System (PMRS): a simple layered system, designed so it could grow.
The PDF service story
My favorite example from PMRS: instead of putting PDF report generation inside the mining system, I built it as a separate FastAPI service. PMRS sends a payload, and it returns a PDF. Later, another service needed PDF reports too, and it reused the same service with no rewrite.
We picked Python because its PDF tooling fit the job. And to be clear with the students, this was one focused service split out because reuse paid off. It wasn’t a microservices platform.
Lessons I carry forward
These are the five I closed with, as advice to future engineers:
- Know what not to build. If a proven tool already meets the need, use it.
- Start simple, design for extension.
- Separate only when it pays off. Not because it’s fashionable.
- Pick tools for the problem, not out of habit.
- Match deployment to each app’s needs.
Good architecture is deliberate, not complicated.
From code writer to systems thinker
My last slide was the one I hope sticks. When we start out, success means “my code works,” and that matters. But code is only one part of a system. Around it are the users, your teammates, the data, how it’s deployed and kept running, and every change still to come.
So here’s the homework I gave, and I’ll give it to you too: on your next project, before you write code, sketch the parts and how they connect. Then ask what would break if it grew ten times bigger. That habit is what turns a code writer into a systems thinker.
The best question: organizing or architecting?
During the Q&A, someone asked a question I loved: how do you know if you’re actually architecting software, or just organizing folders?
I answered with a librarian. Imagine a librarian who sorts every book neatly onto shelves. Everything has a place. But people still walk in and struggle to find the book they need. That’s just organizing. A good librarian arranges the library so that finding what you’re looking for is easy.
Software works the same way. Neat folders don’t mean good architecture. The real test is whether the next person can find the rule they need to change, change it in one place, and trust that nothing unrelated breaks. If your structure makes that easy, you’re architecting. If it only makes the file tree look tidy, you’re organizing.
Thank you to Pamantasan ng Lungsod ng Maynila for having me, and to everyone who stayed for the questions.
If you’re a student working through your own architecture decisions, say hi. I’m always happy to look at a diagram.