Teams and evolutionary architecture
FTGO can split its code and its data into services, but if the teams stay organized the old way, every change still needs a meeting between three groups. This chapter shows how to shape teams so services can change independently, and how an architect keeps the whole system coherent without becoming the bottleneck.
key idea / coordinator service / good path in progress / watch out problem / failure neutral
In chapter 24 we moved data out of the monolith's tangled schema: we decided who owns each table, split schema and code in safe steps, and kept both sides in sync while they ran side by side. FTGO now has services with their own data. That left one problem open: the architecture follows the shape of the teams that build it, and FTGO's teams still have the monolith's shape.
How should FTGO organize its people so that services stay independent, and who guides the system as a whole? By the end you can explain Conway's law, choose an ownership model, decide what platform and enabling teams are for, and describe how an evolutionary architect steers with principles, standards and a paved road instead of orders.
New services, old teams: coordination eats the gains
FTGO wants scheduled orders: order at noon, deliver at 7 pm. The code lives in Order, Kitchen and Delivery services, which can deploy independently. But FTGO still has a front-end team, a back-end team and a database team. The feature needs a screen from the first, logic from the second and a schema change from the third. Each team has its own backlog, so the feature waits three sprints for three hand-offs, and all three services ship together on one agreed date.
FTGO paid for a distributed architecture and kept the coordination of the monolith. The test is what a team can do on its own. A loosely coupled team has six abilities:
Give one team the end-to-end delivery of a valuable slice of the domain, with few hand-offs. At FTGO, a Delivery team owns Delivery Service from screen to database, so it can build, test and ship its part of scheduled orders without waiting for anyone.
Each team now needs front-end, back-end, data and operations skills, and people lose the comfort of a single specialty. And reorganizing is not cosmetic: the way teams talk to each other decides the shape of the system they build.
The system copies the org: Conway's law
Why did FTGO's layered teams keep pulling the services back into one release? Because of a rule observed long before microservices.
Even after the split, FTGO's back-end team keeps putting shared logic into one "common" library that every service imports, and the database team keeps one shared schema review for all services. Nobody planned it, but the system drifts toward three layers that must change together, exactly like the three teams.
Melvin Conway observed in 1968 that an organization that designs a system produces a design that copies its own communication structure. Four groups working on a compiler give a four-pass compiler. So loosely coupled organizations tend to build loosely coupled systems, and tightly coupled ones build tangled systems.
The evidence in the figure is more than anecdote: in paired products, the loosely coupled organizations wrote the more modular software, and for Windows Vista, organizational measures predicted error-prone components best.
Draw the team boundaries along the service boundaries you want: one stream-aligned team per slice of the domain (Order, Kitchen, Delivery, Accounting), talking to other teams mainly through service APIs. Then the natural drift of communication pulls the system toward the right shape instead of away from it.
The arrow also runs backward, slowly. In a side example, a print firm's website had an input, a core and an output subsystem. IT divisions grew up around those three parts. When the business wanted to change the system, the org structure held the old design in place, and the company had to change the org before it could change the system.
Reorganizing is slow and disruptive, and getting the boundaries wrong locks the wrong design in place. Even with the right boundaries, FTGO's teams can be too big or too dependent on each other to move fast.
Fewer people per decision: small, autonomous teams
The right boundaries help only if the teams inside them can decide quickly.
FTGO's Order team has grown to 18 people because Order is the busiest part of the business. Stand-ups take half an hour, every design choice needs a meeting, and management's answer to a late release is to move four more engineers onto it. The release gets later.
Most developers prefer teams of roughly 5 to 10 people, and one study found productivity was worst for projects averaging 9 or more. Adding people does not scale delivery by itself. As Fred Brooks put it, adding manpower to a late project makes it later, because every new person adds lines of communication. The real cost at scale is coordination.
Keep each team small and give it its own services, so most decisions stay inside one team. Split a team that grows too big along a domain seam, for example Order placement and Order history, and let the two teams coordinate only through their service APIs.
Well-known examples point the same way:
- Amazon's two-pizza team is about autonomy, accountability and an owner mindset, not about the exact headcount.
- Netflix built small, independent teams on purpose, so that the services they built would be independent too.
- Dunbar's number and W. L. Gore: keep a unit under about 150 people so everyone knows each other. Outside software, the retailer Timpson cut its rulebook to two rules and lets each store decide the rest.
- Do not copy blindly. Two-pizza teams or the "Spotify model" worked for a reason in their context. Understand the reason before you copy the shape.
More teams means more boundaries, and work still crosses them. Sooner or later the Kitchen team needs a change in Order Service. Who is allowed to make it?
Who may change a service: strong versus collective ownership
Small teams decide fast inside their own services. The friction moves to the edges, where one team needs something from another team's code.
The Kitchen team needs Order Service to expose the requested delivery time. At FTGO anyone may commit to any repository, so a Kitchen developer adds the field on a Friday. The change breaks an assumption the Order team relied on, and the Order team finds out from a page at 2 am. Next week the Order team starts insisting that everyone use its framework "to keep things consistent".
There are two models:
- Strong ownership: one team owns a microservice and decides every change. Outsiders ask, or send a pull request that the owner may accept.
- Collective ownership: any team may change any service, so teams must coordinate closely and keep everything consistent.
Inside a team, collective ownership is healthy: everyone can change the team's code. Between teams, prefer strong ownership, so the Order team decides what goes into Order Service and other teams send requests or pull requests.
- Mix where it helps. Let teams pick their language, but fix the cloud platform for everyone.
- Full life-cycle ownership goes further: one team designs, changes, deploys, runs and finally retires the service, with no tickets to other groups.
- Local choices still need coordination when they affect others. The Order team may pick its own database, but not an API style that every other team must learn to call.
Strong ownership turns the owner into a gate. When one service is needed by many teams, its owner's backlog becomes everyone's bottleneck.
When every team needs the same service
One service per team is the goal. Shared services are still common, and the bottleneck from the last section shows up there first.
Notification Service sends every SMS, email and push message at FTGO. Order, Kitchen, Delivery and Accounting all need new message types this quarter. The four-person Notification team has a backlog of 40 requests, and scheduled orders wait in line behind a promotional email.
Before fixing a shared service, understand why it is shared:
Waiting is cheapest if the requester can wait. Split the service if one part changes far more than the rest. Adding people to the owning team is easier on a standard stack. For the Notification backlog, the strongest option is to let the requesting teams write the change themselves.
Copy the open source model inside the company. A small group of core committers owns the service and reviews patches from other teams. The Delivery team writes its own "courier is near" message and sends a pull request; the Notification team reviews and merges it.
The core committers must protect quality and consistency, and also be helpful, not gatekeepers who throw their weight around. A few factors decide whether it works:
| Factor | Guidance |
|---|---|
| Maturity | Open a service to outside patches once its core is stable and changes are rare. While it is unstable, nobody can say what a good patch looks like. |
| Tooling | Pull requests, inline review comments, and easy build and deploy through pipelines and a central artifact store. |
| Reviews | Peer review gives better results than external approval boards; pairing is the quickest form of review. |
| Orphaned services | Teams aligned to bounded contexts still own the quiet services in their context. Small services are cheap to rewrite if knowledge is lost. |
Reviewing outside patches takes the owners' time, and contributors must learn a codebase they do not own. More broadly, every stream-aligned team is now expected to know deployment, logging, security and the rest. Small teams cannot each become experts in all of it.
Autonomous teams still need help: enabling and platform teams
Autonomy moves work onto stream-aligned teams that used to sit with operations or a central group.
Each FTGO team now runs its own services. The Kitchen team writes its own deployment scripts, the Delivery team builds its own log shipping, and the Accounting team invents its own service-to-service authentication. Four teams solve the same problems four different ways, and two of the solutions are insecure.
Surround the stream-aligned teams with a supporting cast whose whole job is to reduce their load: a platform team that offers self-service tools, an enabling team that advises and connects, and communities of practice where peers learn from each other.
| Group | Job | Time commitment |
|---|---|---|
| Enabling team | Surveys what teams do, connects people, spots shared pain (for example, test data), and helps rebalance local versus global choices | Full-time or ring-fenced |
| Community of practice | Peer sharing and learning across teams, such as an FTGO security guild | A few hours a week; fluid membership |
| Platform team | Self-service tooling: desired-state deployment, log aggregation, service-to-service authentication | A full team that has users |
The platform team's users are FTGO's developers. It should collect their feedback and judge itself by how easy shipping has become, not by how impressive the platform is. One story from the company Uswitch sums it up: they did not change their organization to adopt Kubernetes; they adopted Kubernetes to change their organization.
Side example: realestate.com.au (REA). A 2014 snapshot of REA, an example rather than a template, shows structure and architecture aligned:
Because lines of business integrated only through coarse batch feeds, each could take its own services down at will. Autonomy applied to teams and to parts of the business, and services grew from a handful in 2010 to hundreds by 2014.
Platform and enabling teams are people not building features, and a platform nobody wants is wasted effort. With dozens of teams each making local choices, someone still has to ask whether the pieces add up to one system.
Who keeps the whole coherent: the evolutionary architect
Autonomous teams optimize their own services. Nobody in them is paid to watch the gaps between services.
Order exposes REST, Kitchen chose gRPC, and Delivery publishes events in a format of its own. Each choice made sense inside its team. Together they mean every new integration at FTGO needs a different client library, and no one can draw the system on one page.
Architecture is the shape of the system, and it happens by design or by accident. It is also a social construct: the part of the design that the people building it understand and share. Someone has to own the technical vision and see the whole system, not just one facet of it.
Think of the architect as a town planner, not the designer of one building. A planner sets the zones and the roads between them, and does not say which building goes on each plot. At FTGO the zones are service boundaries; the architect cares most about the APIs, monitoring and health between them.
- Make change possible. Like a skyscraper with a fixed service core and flexible floors, fix the few essentials that are hard to change and leave room to adapt the rest. Architecture is not only "the hard-to-change stuff"; it also creates room for change.
- Between zones, be strict. Pick one or two integration styles; do not mix REST, gRPC and RMI at random. Inside a zone, be liberal: a team may vary its technology, as long as the organization can still hire for it and move people between teams.
- Habitability. The environment, tools and practices must be pleasant to work in. Involve developers in choices, and spend real time with teams: say, half a day per team every few weeks, doing normal work rather than inspecting.
One architect cannot sit in on every decision at FTGO, and an architect who tries becomes the new bottleneck. The vision has to travel without the architect in the room.
Steer without being everywhere: goals, principles and the required standard
The architect needs a way to shape hundreds of daily decisions made by people they never meet.
A new Delivery engineer must choose how to deploy a courier-tracking service. There is a 60-page architecture document, half of it about a cloud vendor FTGO left last year, and it does not say which rules matter most or why.
Give people a small framework. Strategic goals say where the business is going. Principles are a few rules, fewer than ten, that serve those goals. Practices are detailed, usually technology-specific ways to follow the principles, and they change more often.
| Level | FTGO example | Changes |
|---|---|---|
| Goal | Cut the time to market for new features such as scheduled orders | Rarely |
| Principle | Teams control the full life cycle of their services and ship independently | Sometimes |
| Practice | Deploy each service into its own isolated cloud account | Often |
| Constraint | We run on one chosen cloud provider | Hard to change; revisit now and then |
A large organization can keep different practices in different places, such as a .NET set and a Java set, under the same principles. To check progress, use fitness functions, an idea from the book Building Evolutionary Architectures: measure a property, such as "order placement responds in under 100 ms", and investigate when it leaves its bounds. Fitness functions support conversations with the people building the system; they do not replace them.
Autonomy has limits. Some things every service must do, so the whole stays cohesive and one bad service cannot hurt everyone: the required standard of a good citizen.
- Monitoring: every service emits the same kinds of metrics and logs (chapter 17), so FTGO gets one system-wide view.
- Interfaces: one integration standard is good, two is tolerable, twenty is not. Agree on conventions such as pagination and versioning.
- Safety: every service uses time-outs and circuit breakers (chapter 18), and its response codes mean what they say. If Kitchen returns a success code for an error, the circuit breakers in Order Service never open.
Writing principles down does not make people follow them. A required standard that is painful to meet gets skipped under deadline pressure, and every team ends up rebuilding the same health checks and logging in slightly different ways.
Make the right thing easy: the paved road, debt and exceptions
Principles say what good looks like. The last step is making good the path of least effort.
FTGO's principles require metrics, logs, health checks and service authentication. Starting the courier-tracking service, the Delivery team spends two weeks wiring all of that up by hand, gets the log format slightly wrong, and skips authentication "for now" to make the deadline.
Technical governance means agreeing how things are done, making sure people know, and making sure it happens. It works best as a group activity, led by the people doing the work, that reviews the principles and tracks technical risk. Its best tool is not a review board.
Make the right thing the easy thing. Offer a ready path for a new service: real exemplars to copy, a tailored template that comes wired to FTGO's logging, metrics, health checks and pipeline, and a self-service platform to run it on. Teams may leave the road, but then they must rebuild what it gives them.
| Tool | What it is | Caution |
|---|---|---|
| Exemplars | Real services in production that get things right, for others to imitate | Use real, used services, not toy "perfect" examples |
| Tailored template | A starter such as Spring Boot plus your libraries for health, metrics, auth and the pipeline (the service chassis from chapter 16) | Can grow into a mandated monster; keep it optional and open to contributions. Shared code also couples services |
| Service mesh or sidecar | Moves common behavior out of the template into the infrastructure | Netflix uses sidecars for its non-JVM services |
Netflix (JVM) and Monzo (Go) speed up new services by standardizing on one stack. More languages would need a template each, so templates quietly narrow language choice.
Even with a paved road, the vision sometimes loses to the deadline. That is technical debt: a short-term gain with an ongoing cost, which you want to pay down. Debt also appears when the vision changes and old parts no longer match it. At REA, product owners were judged only on features, so technical debt grew until they were also made accountable for the technical health of their services.
Sometimes a team breaks a rule for a good reason. Record the exception. When exceptions pile up, the rule is wrong, so change it:
- Debt: keep a view of how much exists. Light guidance may be enough, or keep a regular debt log.
- Exceptions: log them and review them. High-trust teams with light principles may not need a formal process.
- The architect's place: in an organization of stream-aligned teams, the architect often sits in an enabling team, connecting people and adapting the vision rather than commanding.
- Build your team: many small services give people many places to step up and own something, which also eases the load on the architect.
A paved road is a product: someone must build it, keep it current and listen to its users, or it decays into a mandated template nobody likes. And all of this, from Conway's law to the paved road, is about how to build services. Knowing the theory is not the same as building one.
Practices in this chapter
| Practice | Problem it solves | What it costs |
|---|---|---|
| Stream-aligned teams | Features wait on hand-offs between front-end, back-end and database teams | Each team needs a broad mix of skills |
| Design the org for the architecture (Conway's law) | The system drifts back to the shape of the old org | Reorganizing is slow; wrong boundaries lock in the wrong design |
| Small teams with few interfaces | Large teams spend their time coordinating; adding people slows them down | More teams and more boundaries to manage |
| Strong ownership between teams | Outsiders break a service, or force consistency that removes local choice | The owner can become a bottleneck |
| Internal open source | A shared service's backlog blocks every team that needs it | Owners spend time reviewing; contributors learn foreign code |
| Platform and enabling teams, communities of practice | Every team solves deployment, logging and security on its own | People not building features; a platform must earn its users |
| Architect as town planner | Local choices add up to an incoherent system | One architect cannot be in every decision |
| Goals, principles, practices and fitness functions | Teams cannot tell which rules matter or why | Written principles are not followed automatically |
| Required standard | One badly behaved service hurts monitoring, integration or safety for all | Limits autonomy at the service boundary |
| Paved road (exemplars, templates, platform) | Doing the right thing is slow, so teams skip it | Must be maintained as a product; templates couple services and narrow language choice |
| Debt and exception logs | Shortcuts and rule-breaking pile up unseen | Upkeep; the rules must change when exceptions pile up |
Recap
- Microservices pay off only with loosely coupled, stream-aligned teams that can design, test and deploy their part of the domain without waiting for others.
- Conway's law says a system copies the communication structure of the organization that builds it, so design the teams for the architecture you want, and expect the org to hold an old design in place.
- Coordination is the main cost at scale, so keep teams small, give them their own services, and prefer collective ownership inside a team and strong ownership between teams.
- When a shared service becomes a bottleneck, find out why it is shared, then wait, split it, add people, or open it up as internal open source or pluggable modules.
- Platform and enabling teams and communities of practice reduce the load on stream-aligned teams, and they work best when they guide rather than mandate.
- The evolutionary architect acts like a town planner: a few goals and principles, a required standard for what crosses service boundaries, a paved road that makes the right thing easy, and logs of debt and exceptions that tell when to change the rules.
Quick check
Show answer
The feature needs all three teams, with hand-offs and coordination, and the services will drift toward the same three layers, changing and releasing together. Reorganize around slices of the domain, such as a Delivery team that owns Delivery Service from screen to database, so the team can build and ship tipping on its own.
Show answer
If the platform is hard to use or does not fit a team's needs, teams bypass it and lose sight of the reasons behind the rules. Explain the rules and their reasons, treat developers as the platform's users, and make the platform the easiest path: a paved road teams choose because it saves them work.
Show answer
The practices. They are low-level and technology-specific, so they are expected to change often. The principles, and the goals behind them, should stay stable.
FTGO now has the patterns, the platform and the team structure for microservices. What it does not have is your hands on the keyboard: the best way to make all of this concrete is to build a small microservices application yourself, one service at a time.