Home · From Telemetry to Decisions · Part 3 of 15

Three jobs, three layers

Process and govern, watch live, act.

architecturetelemetry

A platform like this has three separate jobs, and most of the unnecessary complexity I have seen comes from letting one component do all three.

The first job is to process and govern the data: take in readings, check them, turn them into the numbers the business is judged on, and train any models. The second is to show what is happening right now, for people watching the fleet. The third is to help people decide and act: recommend, approve, plan, and keep a record.

Process and govern readings to numbers models, one truth Decide and act agents recommend people approve Watch live seconds, not minutes numbers decisions same stream of readings One job each. No two layers define the same rule.
Each layer has one job, and no two layers define the same rule.

One job each

Each job gets its own layer, because each layer is good at something different. The data layer is good at large volumes, repeatable calculation and governance. A live view is good at seconds rather than minutes. An action layer is good at workflow: who saw what, who approved it, and what happens next.

The test of a good split is simple. No two layers define the same rule. The moment the action layer recomputes a business number just for its own screen, you have two definitions, and sooner or later two answers. So the data layer publishes the numbers. The other layers read them and never redefine them.

Two kinds of data

The split also follows the data. Readings, and the numbers derived from them, are analytical: large, append-only, computed in bulk. Decisions, approvals and plans are operational: small, changed through a workflow, tied to a person. Keep each kind where it belongs.

Then let the operational records flow back to the data layer, so that later analysis can ask whether a decision helped. That return path is what the last posts in this series depend on.

How the layers talk

Layers need a clear way to hand things over, and the handover should be boring. The data layer publishes its numbers in a documented form, with a name, a definition and the time they were computed. The action layer reads them as they are. When the action layer needs a number that does not exist yet, the answer is to ask the data layer to define it, not to calculate a private version. That small discipline is slower on the day and much faster over a year.

Why the live view stands apart

The live layer is the one most often folded into the others by accident, because it also shows numbers. But it works to a different clock. It cares about seconds, tolerates simpler arithmetic, and fails in different ways. Keeping it separate means a slow calculation never delays what the control room sees, and a busy screen never disturbs the governed numbers. It reads the same stream and defines nothing of its own.

Why not one big application

You can put all three jobs in one application, and for a demonstration it is faster. The cost arrives later. Every change touches every job, every number has several owners, and nobody can say which screen is right. Splitting by job costs a little up front and buys the thing that matters at scale: when two screens disagree, you know exactly where to look.

There is a second reason to split. The layers change at different speeds. Definitions and models change slowly and carefully, because everything depends on them. Workflows and screens change quickly, because people's needs do. Keep them in one place and the fast changes put the slow ones at risk.

Give each layer one job and never let two layers own the same rule.

Was this useful?

Want to discuss this? Connect with me on LinkedIn.

Next: a new post is coming soon.