Why Metraia Lean and fast
Small footprint, fast at any size
Metraia is one small program with no database to run. It asks little of a server, and stays quick from a single site to thousands of staff and years of history.
Metraia is a single program, written in Rust, with no database server, cache or message queue beside it. That makes it cheap to run and simple to look after, and it stays quick as an operation grows.
Measured at scale
These are Metraia’s own measurements, from an optimised build on a single machine, with 1,000 staff and five years of history.
| 1,000 staff, five years of history | |
|---|---|
| Shifts and clock punches on record | 1.2 million and 2.4 million |
| Space on disk | 495 MB |
| Ready after starting | 0.6 s |
| Memory, once running | about 200 MB |
| Headcount for the whole site | 17 ms |
| Labour cost for every department | 87 ms |
| A week’s timesheets | 141 ms |
| A pay period | 150 ms |
| Saving a change to a week | 30 ms |
Drafting a week is just as quick. For 1,050 people and 3,600 shifts, with every rule checked for every shift, the draft takes under half a second.
Why it stays fast
- The present is in memory. The weeks around today are held ready; older weeks are opened only when something asks for them, and let go again when nobody has for ten minutes.
- A page works on the week in front of it, never on all of history. A timesheet from five years in is as quick as one from the first week.
- A save writes only what changed, and checks only what it touched.
- Long questions have short answers. Each week keeps a small summary of itself, so a report over years of history does not open those years.
Light in the browser
Pages are built on the server and arrive ready to read, with one small script that only adds to them. So Metraia stays quick on an old phone over a weak signal, and still works if the script cannot load.
What it needs
A small virtual machine runs a large operation. Metraia can serve HTTPS itself or sit behind the proxy you already have, and there is no other software to install, tune or patch.