Server - Reldeam/Idle-Inc GitHub Wiki

Overview

Flochart of Server Architecture

Master Server

The Master Server handles the tick-tock cycle and plane allocations to plane servers. The Master server sends out a tick to all Plane Servers and waits to receive a tock response from all Plane servers before sending another tick. The minimum time between each tick is one second. This is also the optimal time and the Master Server will bring more Plane servers online to try and maintain this number.

Reception Server

The Reception Server handles sign-in and handshakes before redirecting the user to the correct plane server. The server also handles redirects from one plane server to another when the player changes their active deed and the new active deed is not on the same plane as the previously active deed.

Plane Server

There are many Plane Servers running at the same time. Each Plane Server manages/updates one or more planes and sends/receives updates from players that are currently active on one of their planes.

Plane servers communicate directly with the Master Server. Upon receiving a tick from the Master Server the Plane Server will update all of the planes it is managing by one tick and then respond with a tock.