# Bevygap: Autoscaling multiplayer Bevy game servers with Edgegap & Lightyear

DevFeed: [Bevygap: Autoscaling multiplayer Bevy game servers with Edgegap & Lightyear](<https://devfeed.tech/articles/bevygap-autoscaling-multiplayer-bevy-game-servers-with-edgegap-lightyear-25816.md>)

Original publisher: [Read original article](<https://www.metabrew.com/article/bevygap-bevy-multiplayer-with-edgegap-and-lightyear>)

Author: {"image"=\>"rj-headshot.jpg", "greetings"=\>nil}

Published: 2024-12-09T06:00:00Z

Content type: article

Language: en

Sources: [Richard Jones](<https://devfeed.tech/sources/richard-jones.md>)

Topics: [Bevy](<https://devfeed.tech/topics/bevy.md>), [autoscaling](<https://devfeed.tech/topics/autoscaling.md>), [inference-endpoints](<https://devfeed.tech/topics/inference-endpoints.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [API](<https://devfeed.tech/topics/api.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [wasm](<https://devfeed.tech/topics/wasm.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [bevy](<https://devfeed.tech/tags/bevy.md>), [bevygap](<https://devfeed.tech/tags/bevygap.md>), [docker](<https://devfeed.tech/tags/docker.md>), [edgegap](<https://devfeed.tech/tags/edgegap.md>), [game-servers](<https://devfeed.tech/tags/game-servers.md>), [gamedev](<https://devfeed.tech/tags/gamedev.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [latency](<https://devfeed.tech/tags/latency.md>), [multiplayer](<https://devfeed.tech/tags/multiplayer.md>), [netcode](<https://devfeed.tech/tags/netcode.md>), [rust](<https://devfeed.tech/tags/rust.md>), [wasm](<https://devfeed.tech/tags/wasm.md>)

## AI overview

This article describes adapting the Lightyear spaceships example into a server-authoritative multiplayer Bevy game and deploying its client and headless server with Docker. It explains using Edgegap to deploy game servers in suitable locations on demand and autoscale them in response to player demand, with supporting infrastructure including GitHub Actions and NATS.

## Source excerpt

If i'm going to write a server-authoritative multiplayer game, it would be nice to have a decent way to deploy it. Especially to deploy servers around the world in response to player demand, to autoscale and keep latency down.