LE BANC

Engineering

One process, and that's enough

Le Banc's infrastructure, in full: one Docker container on a VPS, with a Bun process inside it. No database, no cache, no queue, no load balancer, no bucket.

The WebSocket server is native. There are no runtime dependencies at all — the Dockerfile copies the source folder and starts Bun. The image is tiny and there's no node_modules to audit.

What it costs

One machine, so one point of failure. If the process dies, everyone is disconnected and loses their bench. Since the app reconnects with exponential backoff, that means a few seconds of outage followed by a new bench.

We also can't add a second machine without sharing state, which would require exactly the kind of storage we refuse. The day it becomes necessary, it'll be a real project.

In the meantime, a VM at a few euros a month copes easily, the attack surface is laughable, and there are no surprise bills. We're keeping it.

Back to the journal