Trigpoint
Collections › Software & Systems Architecture
SHELF

Software & Systems Architecture

Choosing a structure for a knowledge system
Discipline: Computer Science
“Software architecture is only for people who write code”: that is a misreading.
17 volumes · 9 lab cases Every source: bibliography checked ✓
↓ Jump to the node list

You choose a structure for a knowledge system every day: where truth sits, how derivations arise, where the boundary falls and who decides it. This field has asked each of those questions for decades. The answers are not in the code; they are in the trade-offs.

Node sequence

Suggested reading order · where truth lives, how derivations arise, where the boundary falls, what the boundary follows, what you give up once distributed, and when both ends of reading and writing are models
№ 01§ Where truth livesOrder within the group: state the principle → see how it lands in the data layer → then an ancestor that is often misread as it
01

Don't repeat yourself (DRY)

Hunt & Thomas (1999)

Don't Repeat Yourself (DRY) holds that every piece of knowledge in a system must have a single, unambiguous, authoritative representation.Applied as intended, it means finding the same judgement scattered across several places, naming one place as authoritative and having the rest refer to it.

4 min read
02

Single source of truth (concept history)

Devlin & Murphy (1988) → Loshin (2008)

A single source of truth says that every element is maintained in one place and everywhere else refers to it.It is a choice of structure rather than a choice of location.And it fails most easily in the references that point at it.

Lab cases ×35 min read
03

Model-view-controller (MVC)

Reenskaug (1979)

Model-View-Controller is a structure worked out at Xerox PARC in 1978–79 that separates data from presentation, so one body of data can have several presentations kept in step.The model holds nothing about how it is shown on screen, so dependency runs in one direction only.

4 min read
№ 02§ How derived things ariseOrder within the group: how the source of fact is stored → the reading side can be a different model. The two are often sold together, though both original sources say they can be separated
04

Event sourcing

Fowler (2005)

Event sourcing captures every change to an application's state as a sequence of events, and derives the current state by replaying that sequence.Replay means rereading existing facts, not running everything again, so outside side effects such as sending an email or taking a payment must not fire again during replay.The price is that earlier entries can never be edited: a mistake is fixed by reversing that entry and those after it, then replaying with the corrected event.

4 min read
05

Command query responsibility segregation (CQRS)

Young (2010) / Meyer CQS (1988)

Command query responsibility segregation splits one model in two along the read/write line: the write side handles behaviour and consistency, the read side query-optimised projections.Its ancestor is Meyer's 1988 command-query separation, a rule about methods; this pattern lifts the same cut to the level of the model.Separate them and you acquire a projection that will always lag the original, and the lag itself sends no signal.

Lab cases ×25 min read
№ 03§ Where the boundary fallsOrder within the group: criteria for siting it (cost structure, not feature grouping) → then the language boundary → then the direction of dependency
06

Modularity and thin crossing points

Baldwin & Clark (2000) / Baldwin (2008)

Modularity is the design of cutting a complex system into pieces that manage their own insides and deal with each other through agreed rules.Its value goes beyond easier maintenance; Baldwin and Clark (2000) turned it into economic theory and saw in it the ability to run many local experiments at low cost.For where a boundary should go, Baldwin's 2008 paper gives the cost of the traffic across it as the test, whether it can be defined, counted and priced.

5 min read
07

Domain-driven design (DDD)

Evans (2003)

Domain-driven design is the approach Evans (2003) set out in which domain experts and developers share one set of terms, and those terms become the names in the model and the code.You might expect the vocabulary to be unified across the whole system; once scale arrives it is instead cut into bounded contexts, consistent inside each and translated explicitly across them.Design effort is limited, so it goes first to the core domain that truly differentiates, and peripheral and generic parts are bought off the shelf where possible.

5 min read
08

Hexagonal architecture (ports and adapters)

Cockburn (2005)

Hexagonal architecture, from Cockburn (2005), has the core define its ports in its own vocabulary: what the outside may ask of it, and what it needs the outside to provide.At run time the core may call out through a port to a database; source-code dependency still always points from the outside in, and the core knows no concrete technology.The criterion: given test inputs and fake adapters, can the core run and have its business rules verified without a real database, user interface or outside service.

4 min read
№ 04§ What the boundary followsOrder within the group: the constraint first (structure will mirror communication paths) → then what can be designed (make interfaces explicit, and expect the relationships to evolve)
09

Conway's law

Conway (1968)

Conway's law is Conway's 1968 proposition that organisations which design systems produce designs that mirror their own communication structures.It is a constraint rather than a fate, so its most valuable use is the reverse one: change how people talk first.Interfaces between modules can only be negotiated between people who can talk to each other, so the system's boundaries grow into the teams' boundaries.

Lab cases ×25 min read
10

Team topologies

Skelton & Pais (2019)

Team Topologies is an approach that starts from Conway's law and treats deliberately designing team boundaries as an architectural tool.The book requires relationships between teams to rest not on tacit understanding but on an explicit document written the way an interface is, which it calls a Team API.The criterion for a boundary is cognitive load: what one team can genuinely hold has an upper limit, and overload is itself the signal to split.

4 min read
№ 05§ What you gave up once you distributed itOrder within the group: the decision (split) → the cost (the theorem) → then a position that reverses it explicitly. This closing group rewrites the first one, which is the evidence that this shelf is not doctrine
11

Microservices

Lewis & Fowler (2014)

Microservices builds a single application as a set of small services, each in its own process, talking through lightweight mechanisms and deployed independently.The trouble with a monolith is not its size but its coupling at the deployment level: any small change means releasing the whole thing again.What you buy is autonomy and local scaling, and what you pay is the full cost of a distributed system.

5 min read
12

CAP theorem

Brewer (2000) / Gilbert & Lynch (2002)

The CAP theorem is a proposition about trade-offs in distributed systems: once a network partition occurs, you can keep consistency or availability, and not both.Choosing consistency means refusing or blocking the requests that would break it; choosing availability means letting both sides of the partition keep serving and reconciling the conflicts afterwards.

Lab cases ×25 min read
13

Data mesh

Dehghani (2019, 2022)

Data mesh is a data architecture in which each domain holds its own data and turns it into a product that can be discovered, addressed and used together with others.It keeps source-aligned datasets, the immutable time-stamped facts each domain produces, apart from consumer-aligned datasets, the views transformed for downstream use: the first are facts, the second are derived.Standards for interoperating across domains are settled federally and enforced computationally, while a platform layer keeps down the cost of providing a product.

5 min read
№ 06§ When both ends of reading and writing are modelsOrder within the group: the external evidence → why it still breaks → which two axes it breaks on → then the highest-risk class. This group is also the honesty anchor for the shelf: it lays out this site's own gatekeeping
14

Retrieval-augmented generation (RAG)

Lewis et al. (2020)

Retrieval-augmented generation adds an external text corpus alongside the model's weights and, at the moment of generating, retrieves first and answers second.This approach moves the ceiling on quality from how much the model remembers to how good the corpus is and how accurate the retriever is.Updating knowledge then means swapping the index rather than retraining, and the retrieved passages can be taken out and inspected.

4 min read
15

Hallucination in NLG

Ji et al. (2023)

Hallucination is generation that reads fluently while being unfaithful to its source, or making no sense at all.The danger is not that it is wrong but that it is wrong fluently: fluency lends an appearance of credibility that the truth value does not support.Beyond the range it can reliably cover, a model tends to keep sampling fluently and rarely says “I don't know”.

4 min read
16

Faithfulness vs factuality

Maynez et al. (2020)

Faithfulness and factuality are two separate tests: the first asks whether a statement is supported by the source, the second whether it is true of the world.The repairs differ: a faithfulness problem is distortion in copying, treated with entailment checks or enforced citation; a factuality problem is an error of world knowledge, which only outside checking or retrieval can catch.

5 min read
17

Fabricated citations

Walters & Wilder (2023)

A fabricated citation is a reference that is complete and convincing in form but points to something that does not exist.The danger is not that it looks untrustworthy but that it looks entirely trustworthy.Credibility of form and truth of content come completely apart here, and the only action that intercepts it is going back and checking existence.

5 min read

After reading this shelf

Several pages on this shelf describe some failure that does not report itself. See "Don't repeat yourself (DRY)", "Single source of truth (concept history)", "Event sourcing", "Command query responsibility segregation (CQRS)", "Domain-driven design (DDD)", "Retrieval-augmented generation (RAG)", "Hallucination in NLG" and "Fabricated citations".

For three of these practices, the pages state where the failure moves to once the practice is adopted. Naming one place as authoritative: the problem moves from "which copy is right" to "are the references pointing at it still right", and those references raise no error when the target is renamed or moved. See "Single source of truth (concept history)". Keeping a separate projection for reading: the projection lags behind the original, and the lag itself gives no signal. See "Command query responsibility segregation (CQRS)". Having a model retrieve before it answers: the ceiling on quality moves from how much the model remembers to how good the retrieval store is; when the wrong passage is retrieved the output is just as fluent, and the error often cannot be seen. See "Retrieval-augmented generation (RAG)".

Two further pages state that aligning everything to one place does not make that place correct. "Don't repeat yourself (DRY)" states that the principle makes no promise of correctness; if the one place is wrong, the error only becomes more consistent. "Faithfulness vs factuality" states that when the source itself is wrong, reproducing it accurately still counts as faithful.

On boundaries, three pages write time into the criterion. "Microservices" relays advice from one of its authors: find stable boundaries inside a monolith first, then split. "Team topologies" states that close, frequent collaboration belongs to the discovery period and should be stepped down once the boundary is understood. "Modularity and thin crossing points" states that the cost of crossing a boundary changes, so boundaries need periodic reassessment.

From these the shelf draws two conclusions. First, after adopting any of the three practices above, schedule a fixed check alongside it: verify the references, stamp the projection with the time it was generated, and check sentence by sentence that the output says what its source says. Checking the source itself is a separate task, and none of these structures does it for you. Second, do not cut a boundary before it is understood, and reassess it some time after cutting. Neither conclusion is a statement made by any single source.

At what point one structure should give way to another, the pages on this shelf give directions and questions, not numbers. "Single source of truth (concept history)" and "Data mesh" go only as far as saying that the number of domains and the rate of change "pass a certain point". "Modularity and thin crossing points" states that its source gives no operational measure. "Team topologies" states that when to step down is a matter of judgement. "Conway's law" states that how accurate the law is cannot be answered on that page.

Most pages on this shelf rest on trade books, blog posts and documents published by their own authors, none of them peer reviewed; each page says so for itself. "Conway's law" carries one quantitative study from 2012, which this site checked only as far as the abstract and whose strength it does not report.

The main sources for the four pages in the group "When both ends of reading and writing are models" were published between 2020 and 2023. "Fabricated citations" states that the two rates on that page are tied to that study, those two model versions and a 2023 measurement, and cannot be taken as figures for today's models. "Hallucination in NLG" states that hallucination can at present only be narrowed and must not be assumed to have reached zero.

Applying the structures of software systems to individual knowledge work and to working with models is this site's analogy; these sources did not test it. "Team topologies" and "Data mesh" also state that their practices address multiple teams or large organisations, and that an individual can borrow only part of them.

Read it yourself · Theory layer

The whole theory layer is here, with no account needed. Read it and go.

Trigpoint Pass · Application layer

The case layer (our own tests of source of truth, boundaries and distribution trade-offs built into governance rules, including a metric that corroded and one commit that swept another session's changes in) and the full verification layer of most nodes (how far each source was checked, counter-evidence and failure boundaries).

Trigpoint Pass ▸

Tell me when a new shelf opens

Tell me when a new shelf opens

Shelf notices are sent only when a new shelf opens or when the reading rules change.