Cells and the road to many nodes
The target is ten thousand players in one dimension
Section titled “The target is ten thousand players in one dimension”The goal is ten thousand players in one dimension with the unmodified vanilla client.12 It is a design target, not a measured capacity of the current server.
The replication design budgets roughly 200 to 250 bytes per second before compression for each moving player a client sees. That estimate motivates spreading players across one dimension and bounding how many each client sees; it does not establish which subsystem limits the current server.
Four parts, each in a small crate
Section titled “Four parts, each in a small crate”The design rests on four ideas, and each is a small crate in the mcrs_engine_* family.
| Part | Crate | What it does |
|---|---|---|
| Cell | mcrs_engine_cell |
Owns a box of hot space. Only the owner changes the chunks in its box. |
| Link | mcrs_engine_link |
Connects two parts. Messages go in and messages come out, and no part reads the state of another part. |
| Muxer | mcrs_engine_muxer |
The gateway for clients. It owns the connections, decides what each client gets, and encodes a change once for all viewers of a tile. |
| Data layer | mcrs_engine_store |
Holds the versioned chunks of cold space. |
A cell also holds a halo, which is a copy of the columns of its neighbours within two columns. With the halo a cell never changes a column it does not own. Where the far end of a link runs is called its placement, and the placement is Inline or Thread.
Do not confuse a cell with a shard. A cell is a unit of placement, a shard is the unit of causality described in the sharding note, and one cell holds many shards.
Work inside a cell can already run in parallel, as How a tick runs in parallel shows. Cells are units of balance and placement. Moving a cell between processes or machines remains part of the design.
What exists today
Section titled “What exists today”- A world has one cell, or a static division into several. The cells of all worlds tick in lockstep, either inline or each on a thread. The fields
worlds,cellsandmuxerofServerCorePluginchoose this, incrates/mcrs_minecraft_engine_server/src/server_core_plugin.rs. - A muxer stage runs on a link from the host. The host talks to each dimension over a link, with one input and one output per tick.
- The data layer serves cold columns, with generation and light stages on a thread. A world with a save keeps its cold columns in the Anvil region files of each dimension, and a world without one keeps them in memory.
- The muxer sends player moves in four tiers, from every 2 ticks for the nearest to every 20 ticks for the farthest. It picks a tier by distance and moves a viewer to slower tiers when the viewer goes over its player byte budget. It encodes a tile once for each tier, and every viewer of that tier gets the same bytes. Mobs use their type’s tracking range and a separate update path; they count toward neither the player cap nor that budget.
- A player moves to another cell at the end of the tick in which it stands in a column of that cell. There is no hysteresis yet, and no entity other than a player crosses.
Inside a cell, mobs are Bevy entities. Their publisher derives tile crossings from their positions; crossing a tile does not transfer a mob to another Bevy world. Players are Bevy entities too, and their separate publisher reads components to emit tile events. A tile projection is not the owner of a player’s state.
What is still design
Section titled “What is still design”- Split and merge of cells by cost. The design is a k-d division on X and Z, with moves at a tick boundary and a hysteresis of about 8 blocks.
- A cell in another process, together with an edge as its own process that holds every connection. This part is split into separate tasks: shards that run in parallel, and the steps of distribution from a link between processes to a coordinator.1345
The simplest server stays simple
Section titled “The simplest server stays simple”All of this is optional. The design asks that a user can drop cells, the muxer and the data layer and write a server on one thread, with the game logic depending only on kernels and a world-view trait. Layers and crates explains what a kernel is.
Between that and the full layout there is a middle mode: the full engine with one cell per world and every link inline. It is deterministic, and it is the mode of the tests.
Next: Parity with vanilla.
Footnotes
Section titled “Footnotes”-
WIP#181 The direction: one dimension on many nodes for thousands of players. ↩ ↩2 ↩3
-
Works#351 The decision that ten thousand players are spread over one dimension. ↩
-
WIP#160 Shards form, merge and split, and run in parallel. ↩
-
WIP#162 The first distribution task: an opt-in plugin group behind a link trait. ↩
-
WIP#167 The last distribution task: a coordinator with an ownership map and load balancing. ↩
Sources and verification
Verified: 26.4-snapshot-7, 1cf84286c, 2026-11-30
- docs/cells.md
- docs/replication.md
- docs/minecraft-bevy-sharding-architecture.md
- crates/mcrs_minecraft_engine_server/src/server_core_plugin.rs
- crates/mcrs_minecraft_region_disk/src/lib.rs
- crates/mcrs_engine_muxer/src/tier.rs
- crates/mcrs_engine_muxer/src/planner.rs
- crates/mcrs_engine_muxer/src/muxer.rs
- crates/mcrs_minecraft_replication/src/entity_codec.rs
- crates/mcrs_minecraft_engine_player/src/publish_player_tiles.rs
- crates/mcrs_minecraft_engine_player/src/cell_crossing.rs
- crates/mcrs_minecraft_engine_entity_motion_replication/src/publish_motion.rs
- issue #181
- issue #351
- issue #160
- issue #162
- issue #167
Related open issues:
- #61 WIP Measure the send path under load
- #151 WIP Measure tick time, memory and bandwidth per client under bot load
- #152 WIP Sections as the shared spatial index, with one writer per region file
- #153 WIP Shards own the block simulation queues: scheduled ticks, block events and the insertion sequence
- #154 WIP Global state has one owner and reaches every dimension as a versioned snapshot
- #155 WIP Encode broadcast frames once and deliver them by chunk subscription
- #156 WIP Visibility budget and recipient choice outside the simulation
- #160 WIP Shards form, merge and split from causally connected work and run in parallel
- #162 WIP Distribution as an opt-in plugin group behind a link trait that serialises every message
- #163 WIP The edge as its own process
- #164 WIP Several simulation nodes with a static assignment of chunks
- #165 WIP Measure what a set of chunks and its shards must hold to be handed over within one tick
- #166 WIP Handover of chunks and their shards between nodes, with epochs
- #167 WIP Coordinator: ownership map, player directory and load balancing
- #181 WIP Direction: one dimension on many nodes for thousands of players