Knowledge Hub

Factora Academy

Knowledge Hub · Courses · IoT.Factora · Technology · 20 min

Architecture

Tenants, ingest pipeline, and which apps read readings.

Introduction

What this covers

How a reading moves from a registered device into the screens people trust, and how one factory stays isolated from another.

Why it matters on the floor

If Command Center or Executive invents production, the shift plan is built on a number the line never made.

By the end you can

  • Trace a finite numeric value from the device token through a stored reading, alerts, and energy into the apps that only read those facts
  • Explain that the app is a long-running Node process, with a simulator only for demo factories
  • State that a plant user cannot request another factory, and that a paused factory rejects login

About 20 minutes. Prerequisites: None. This opens the technology track.

Architecture

Every operational row is scoped by companyId. The signed-in plant session selects one factory. Ops viaOps can enter a factory as admin without becoming a plant user.

Pipeline

  1. Device exists in the registry with an ingest token and a type/unit from the sensor taxonomy.
  2. A reading arrives (HTTP or MQTT) with a finite numeric value.
  3. ingestReading stores Reading, optional messageId, quality, source, gateway.
  4. Alert rules, machine-state hints, energy deltas, and (on demo) ERP-shadow batch/bin/QC updates may run.
  5. Command Center, OEE, energy, Executive read those facts. They do not invent production.
Dashboards for Demo Food Plant: sensor health, production, and energy.
These charts read stored readings for the signed-in factory. They do not invent a second set of numbers.

Processes on the VM

The app is a long-running Node process (not serverless): Postgres, MQTT (embedded Aedes or MQTT_URL), connector runtime, simulator (demo tenants only), offline alert scan, edge sync.

Isolation

A plant user cannot request another factory id. Ops aggregation uses authorized site lists. Paused factories reject plant login.

Walk the screen

  1. Confirm the signed-in session is one factory. Another factory is not a filter.
  2. Follow a reading from a registered device, through a finite numeric value, into a stored reading.
  3. Expect alerts, energy, and demo side-effects to run from that store. Command Center, OEE, energy, and Executive read it.
  4. Remember the app is a long-running Node process with Postgres, MQTT, connectors, and a simulator only for demo factories.
  5. A paused factory rejects plant login. A plant user cannot request a different factory.

Worked example

A temperature value arrives for the demo factory and the dashboard for that factory moves. The neighbouring factory's dashboard does not. You do not add a production total on Executive that was not in the stored readings.

Common mistakes

  • Treating Command Center as a place that invents production.
  • Expecting the simulator to run for a live factory.
  • Using one plant login to open a second factory.

Recap

  • Rows are scoped to the factory on the session.
  • Apps read stored facts. They do not invent production.
  • Paused factories reject plant login.

Create a free account or log in to save this lesson on your progress.

Check understanding

Progress is stored in this browser until you log in. Passing is 70%.

1. Readings are stored per
2. Command Center may invent production when ingest is empty.
3. Command Center and Executive should
4. The simulator runs for demo factories, not as the live path.