[GH-ISSUE #7484] Proposal: a proxy for several horizon-server instances, and what a seamless player transfer needs from the server #3265

Open
opened 2026-11-03 04:07:06 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Akirabane on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7484

🤖 Filed by both Akirabane's AI agent (Claude Code) and Akirabane himself, after his review.

What this is

I am building Meridian, a BungeeCord/Velocity-style proxy written in Rust and made only for Horizon: https://github.com/Akirabane/Meridian. It sits in front of several horizon-server instances (for example a lobby and game servers), and its goal beyond a classic proxy is a seamless transfer: a player moves from one server to another, on the same map or a different one, with no loading screen and no new login.

The proxy stays in its own repository. It speaks the Velocity modern forwarding that horizon-server already has (docs/velocity-forwarding.md, #4963), so identity needs no change on the server. The design is in https://github.com/Akirabane/Meridian/blob/main/docs/DESIGN.md (sections 6, 13 and 16), and the study of what Horizon holds for a player is in docs/STATE-TRANSFER.md there.

What it needs from horizon-server

Nothing is written yet in Horizon. Proposed, as separate issues and small pull requests, in this order:

  1. Save the values the player save loses today: motion, exhaustion and the hunger timer, the freezing ticks (powder snow, simulated in motion.rs but not written by the player save), the previous game mode (kept in single player, lost for a LAN guest). This is a bug for any player who reconnects, with or without a proxy, and stands alone. (The cursor item is not lost: on leave Horizon puts it back in the inventory, where vanilla drops it on the ground. That difference is not part of this item.)
  2. Export a connected player's state on request (the vanilla player compound Horizon already writes, plus position, dimension and advancements).
  3. A "held" state for a joining player, and a request that announces who will arrive.
  4. Import into a held player, release, and drop.
  5. Release and drop requests that remove a player without saving or announcing.
  6. Mod hooks on export and import, for named blocks of mod data.
  7. A note and a test for the forwarding with profile properties (a skin), which has never been tried against a real proxy.

Items 2 to 6 are about eleven to sixteen days of work in the game, mostly the held player.

Questions

  • Would the maintainers welcome these changes in this repository, as one issue and one small pull request each, following the usual process?
  • Is there a part you would rather see done differently (for example, where the requests are served: a local sidecar next to each server, or the supervisor's HTTP interface)?
  • Does any of this overlap with work already in progress that I have not seen?

I will not start items 2 to 6 before an answer. Item 1 I can take on its own if nobody objects.

Originally created by @Akirabane on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7484 > 🤖 Filed by both Akirabane's AI agent (Claude Code) and Akirabane himself, after his review. ## What this is I am building **Meridian**, a BungeeCord/Velocity-style proxy written in Rust and made only for Horizon: https://github.com/Akirabane/Meridian. It sits in front of several `horizon-server` instances (for example a lobby and game servers), and its goal beyond a classic proxy is a **seamless transfer**: a player moves from one server to another, on the same map or a different one, with no loading screen and no new login. The proxy stays in its own repository. It speaks the Velocity modern forwarding that `horizon-server` already has (`docs/velocity-forwarding.md`, #4963), so identity needs no change on the server. The design is in https://github.com/Akirabane/Meridian/blob/main/docs/DESIGN.md (sections 6, 13 and 16), and the study of what Horizon holds for a player is in `docs/STATE-TRANSFER.md` there. ## What it needs from horizon-server Nothing is written yet in Horizon. Proposed, as separate issues and small pull requests, in this order: 1. **Save the values the player save loses today**: motion, exhaustion and the hunger timer, the freezing ticks (powder snow, simulated in `motion.rs` but not written by the player save), the previous game mode (kept in single player, lost for a LAN guest). This is a bug for any player who reconnects, with or without a proxy, and stands alone. (The cursor item is not lost: on leave Horizon puts it back in the inventory, where vanilla drops it on the ground. That difference is not part of this item.) 2. Export a connected player's state on request (the vanilla player compound Horizon already writes, plus position, dimension and advancements). 3. A "held" state for a joining player, and a request that announces who will arrive. 4. Import into a held player, release, and drop. 5. Release and drop requests that remove a player without saving or announcing. 6. Mod hooks on export and import, for named blocks of mod data. 7. A note and a test for the forwarding with profile properties (a skin), which has never been tried against a real proxy. Items 2 to 6 are about eleven to sixteen days of work in the game, mostly the held player. ## Questions - Would the maintainers welcome these changes in this repository, as one issue and one small pull request each, following the usual process? - Is there a part you would rather see done differently (for example, where the requests are served: a local sidecar next to each server, or the supervisor's HTTP interface)? - Does any of this overlap with work already in progress that I have not seen? I will not start items 2 to 6 before an answer. Item 1 I can take on its own if nobody objects.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3265
No description provided.