7. Architecture decisions
Why was each major choice made, and what did it cost?
| Decision | Why | What it costs |
|---|---|---|
| One API for everything | One set of rules for the app, the website and the admin console | The API must stay backward compatible for older app versions |
| Java and Spring Boot | Strong typing, mature tooling, and the owner's expertise | Slower to start than a small scripting backend |
| PostgreSQL on a VPS, not a managed backend | Full control, predictable cost, no vendor lock-in | We run backups and upgrades ourselves |
| Row-level security with per-request identity | The database refuses data a user must not see, even if application code has a bug | Each request opens a short transaction, which adds a little CPU |
| Expo and React Native | One code base for Android, iOS and the web, and over-the-air updates | Native modules need a new store build to change |
| Faceless masks on the server | The author never reaches the client, so it cannot be read from network traffic | More work in every read path that returns posts or people |
| Feature flags in the admin console | Features such as Tribes and Pro can be switched on gradually | Each flag is another state to test |
| Over-the-air updates | Fixes reach students within minutes | Only JavaScript changes can ship this way |
| One server first | Cheap and simple while the audience is concentrated in a few schools | A second server and a load balancer are needed to grow past the first schools |
Last updated 30 November 2026.
