Feux Labs / Docs / Architecture decisions

7. Architecture decisions

Why was each major choice made, and what did it cost?

DecisionWhyWhat it costs
One API for everythingOne set of rules for the app, the website and the admin consoleThe API must stay backward compatible for older app versions
Java and Spring BootStrong typing, mature tooling, and the owner's expertiseSlower to start than a small scripting backend
PostgreSQL on a VPS, not a managed backendFull control, predictable cost, no vendor lock-inWe run backups and upgrades ourselves
Row-level security with per-request identityThe database refuses data a user must not see, even if application code has a bugEach request opens a short transaction, which adds a little CPU
Expo and React NativeOne code base for Android, iOS and the web, and over-the-air updatesNative modules need a new store build to change
Faceless masks on the serverThe author never reaches the client, so it cannot be read from network trafficMore work in every read path that returns posts or people
Feature flags in the admin consoleFeatures such as Tribes and Pro can be switched on graduallyEach flag is another state to test
Over-the-air updatesFixes reach students within minutesOnly JavaScript changes can ship this way
One server firstCheap and simple while the audience is concentrated in a few schoolsA second server and a load balancer are needed to grow past the first schools

Last updated 30 November 2026.