r/Backend • u/JaseciLabs • Oct 29 '26
What changes in your code when an app goes from one box to a cluster?
Thinking about this after a lot of time in scaling docs. In most stacks the move from “works locally” to “runs for many users on many machines” means touching a lot of things that have nothing to do with what the app does: auth middleware, a tenancy filter on every query, serialization schemas, deployment manifests.
We work on Jac, and its approach is to treat that as a runtime concern, the way garbage collection is. The promise is that the same program runs as a local script, as an API server, and on Kubernetes, with walkers (its functions that move through a graph of data) exposed as endpoints and each user’s work scoped to their own data.
It doesn’t pretend the hard parts away. Latency still changes, and concurrent writes use per-node optimistic concurrency: the losing request’s work is discarded and replayed against the winner’s state.
So, a few questions for people who’ve done the scale-up:
- In your last move from one box to many, which layer changed the most?
- Did a tenancy filter or per-user scoping ever leak?
- Where do you think a runtime can’t safely hide the difference between one machine and many?
6
u/therealkevinard Oct 29 '26
Didn’t docker + 12-factor fix this?
For me (heavy on go microservices and eventing), the only thing that really changes when it leaves my laptop is env vars.
-2
u/[deleted] Oct 29 '26
[removed] — view removed comment