FiveM Infrastructure
Hardened, automated infrastructure for high-concurrency multiplayer servers, where a single unmitigated attack ends a community.
- Year
- 2024
- Type
- High-concurrency game server platform
- Status
- Live
- Audience
- Multiplayer community operators and the players who depend on persistent state.

The context.
The platform runs persistent multiplayer game servers with hundreds of simultaneous players and continuous state mutation.
It began as a rescue: the community was being taken offline by volumetric attacks and losing player state to unrecoverable crashes.
The rebuild treated the deployment as production infrastructure — immutable images, edge filtering, real backups and measurable recovery.
What was actually broken.
- Volumetric and application-layer attacks took servers down weekly.
- Configuration lived on the server and existed nowhere else.
- Crashes lost hours of player progression with no recovery path.
- Resource contention made peak-hour latency unplayable.
Player trust collapses after the second unrecoverable outage.
Sustaining low-latency real-time state under hostile traffic, with no maintenance window the community would tolerate.
What was engineered.
- Edge filtering and rate limiting in front of every entry point, with per-connection anomaly scoring.
- Infrastructure as code: every server rebuildable from a signed image in minutes, with zero manual configuration.
- Continuous state snapshots with tested point-in-time recovery, measured by actual restore drills.
- Resource isolation per service, plus metrics and alerting on the signals that predict a bad night.
Layer by layer.
Operator control panel with live player, resource and incident views.
- React
- TypeScript
- WebSocket
Control-plane API orchestrating provisioning, restarts and snapshots.
- Node.js
- TypeScript
- Job queue
Authenticated admin API with signed, audited privileged actions.
- REST
- HMAC
- Audit log
Relational player state with aggressive index tuning and hot backups.
- PostgreSQL
- PITR
Traffic scrubbing, rate limiting and connection reputation at the perimeter.
- DDoS mitigation
- WAF
- Anycast
Immutable containerised nodes provisioned from declarative definitions.
- Docker
- Ansible
- Infrastructure as code
Hardware-key protected admin access with least-privilege service accounts.
- 2FA
- SSH certificates
- Least privilege
Metrics, logs and traces with alerting on leading indicators.
- Prometheus
- Grafana
- Loki
The why behind each trade-off.
Why immutable infrastructure?
Servers repaired by hand drift until nobody knows what is running. Rebuilding from a signed image makes recovery a routine operation rather than an archaeology exercise.
Why Docker for game workloads?
Resource isolation and reproducible runtime. One misbehaving resource can no longer starve the process everyone else depends on.
Why edge filtering instead of host-level rules?
Volumetric traffic must die before it reaches the origin. Filtering at the host means the link is already saturated by the time the rule fires.
Why restore drills?
A backup that has never been restored is a hypothesis. Scheduled drills turned recovery time into a number the operator can quote.
What resisted.
- Security
Attack patterns evolved every few weeks, so mitigation had to be layered and observable rather than a single static ruleset.
- Performance
Peak-hour tick stability required profiling the real workload; the fix was I/O scheduling and query shape, not more CPU.
- Deployment
Zero acceptable downtime meant staged rollouts with instant rollback to the previous known-good image.
- Reliability
Snapshot cadence was tuned against measured state-change rates so worst-case loss stayed within a defined bound.
What it taught.
- Availability is a security property. Uptime you cannot defend is uptime you do not have.
- Untested recovery is not recovery. The drill is the deliverable.
- Real-time systems reward profiling over provisioning almost every time.
Measured, not claimed.
400+
Concurrency
Simultaneous players at sustained peak.
99.9%
Attack uptime
Availability maintained under mitigation.
6 min
Rebuild time
Full node reconstruction from image.
<5 min
Recovery point
Worst-case state loss, drill-verified.
The system in context.


Technology stack
- React
- TypeScript
- Tailwind CSS
- Node.js
- TypeScript
- Job queues
- Docker
- Ansible
- Nginx
- Linux hardening
- WAF
- DDoS mitigation
- 2FA
- Least privilege
- Prometheus
- Grafana
- Loki