Architecture
The three components of Peachgram and the connections between them
Every player session touches the same three components.
Components
| Component | Runs on | Purpose |
|---|---|---|
| Master server | VPS, Docker | Accounts, heroes, store, matchmaking, the website |
| Game server | VPS, Wine under systemd | Hosts the actual matches over UDP |
| Client | Player's Windows PC | The game, plus a hook that redirects it to the master server |
Connection flow
- The launcher signs the player in and opens the game.
- The hook inside the game redirects the original service calls to the master server over a secure WebSocket.
- The master server lists available matches, and the client connects to the chosen game server directly over UDP.
The master server never relays gameplay traffic. If it is down, running matches continue, but nobody can join new ones.
Where state lives
- Database: accounts, heroes, wallet, catalogue and statistics live in PostgreSQL.
- Files: the game server keeps its own installation directory, independent of the master server.
- Client: settings and logs stay on the player's machine.
Failure domains
Each part can be restarted on its own. Restarting the master server drops active logins briefly; restarting the game server ends the matches it hosts. See restart safely before touching a live server.