simple lerp-ing/interpolation/tweening for correcting client side stuff to server positions as they come in (IE: lots you can do with this especially for slower paced games).
Messing a bit with animations can help a lot as well (IE: reload animation being slightly longer on the home client, and slightly faster on remote clients). Also helps a bit for physics where the moment a player takes an action you let them move a tiny bit at a slow speed (and faster start speeds on server/remote clients, but will need a bit of calculus to make this be synced up properly). IE: mostly along the lines of favoring gamefeel/responsiveness at the cost of a small amount of out of sync-ness (often times calculated amounts to eat a little bit of ping time delay, so you can be less aggressive with other methods). (can find a great Halo Netcode video on this on the other linked lists below).
manipulating the "time" in which players play at, normally along the lines of "delayed based" for naming conventions (IE: getting a high ping player to play further in the future compared to the sever, so that their commands arrive at server around the time they took their future action).
having lots of regional servers that players connect to can also be "cheaper" compared to devtime if you're willing to trade with that bit of complexity.
Taking that delayed based netcode, and making it rollback so that one/both (client/server) have the ability rollback in time to change past actions (and queue up future ones).
Weaving between the above there's some level of extra prediction/AI you're able to add for controlling what players remote to the viewing client will do. Though this mostly plays best with rollback, though in a slower game could work with others(IE: fighting games can assume people are likely to take X combo, that they will stop at X point, and similar).
Manipulating the underlying Internet infrastructure with specialized peering deals or laying out your own physical network (check out the Riot article below). This service is even somewhat accessible to larger indies now since there are services that duplicate it ( Glenn Fiedler (Gafferongames) has this company they're working on the topic https://www.networknext.com/ , and there are similar copycats some for games/some for just JavaScript insanity )
Basically if you wanted to you could have a whole team dedicated to getting this just right for a multiplayer game. And it's a really interesting problem to play with since on one hand you're trying to defeat universal constants like the speed of light, and on the other hand you're playing with very soft/noodle-y/unreliable things like underlying network infrastructure. Something you can really nerd yourself out about and keep poking at this essentially forever, instead of making your game.
Here's a smorgasbord of links so you can deal with post mortems and similar rather than my half developed hobby musings (tendency towards softer material instead of technical material) :
https://youtu.be/fFP7c59ezjo (interesting video talking about netcode in brief, and a channel that somewhat infrequently does similar interviews/talks)
http://ithare.com/ (This one alternates between being blog like, having the beta version of their good book on multiplayer, and having some of the most in-depth tutorials)
There are also tons of HTML 5/Node/JavaScript multiplayer tutorials that are under 2 years old (though these focus on the simpler parts in the initial steps, not the complex ones like handing off rooms between servers, having more than one server, or lag compensation) :
https://blog.hathora.dev/ (Haven't had time to poke at it yet, but TypeScript. Looks focused at using AWS from the start for higher built in scalability than other options, also some nice looking tutorials. Also have a nice general blog to poke at: https://blog.hathora.dev/ )
/r/gamedev/comments/k2mvgn/official_baas_backend_as_a_service_discord_for/ (Discord for a bunch of other services, along with an awesome summary spreadsheet for them in that post)
You don't. Most professional teams target around 100 players per CPU core. ITHare is probably the favored resource I like to send people towards for reading for technical info, and getting a grasp on the scale of what you're asking. You're at the point where you're scaling well past single server capability, and at the point where expenses skyrocket massively (along with narrowing your pool of hireable candidates massively).
5k in the same area/screen is fundamentally impossible to have the actually synced. A home connection just won't have the bandwidth. Unless you're taking some interesting shortcuts with your game design.
At the 5k online point you're at the point where even securing your client is a full time job for a team member, along with several people being required to stay trained. Incase something big happens.
Here's a link spam so you can deal with post mortems and similar rather than my half developed hobby musings:
http://ithare.com/ (This one alternates between being blog like, having the beta version of their good book on multiplayer, and having some of the most in-depth tutorials)
There are also tons of HTML 5/Node/JavaScript multiplayer tutorials that are under 2 years old (though these focus on the simpler parts in the initial steps, not the complex ones like handing off rooms between servers, having more than one server, or lag compensation) :
https://blog.hathora.dev/ (Haven't had time to poke at it yet, but TypeScript. Looks focused at using AWS from the start for higher built in scalability than other options, also some nice looking tutorials. Also have a nice general blog to poke at: https://blog.hathora.dev/ )
/r/gamedev/comments/k2mvgn/official_baas_backend_as_a_service_discord_for/ (Discord for a bunch of other services, along with an awesome summary spreadsheet for them in that post)
Yep lots (in order of difficulty):
simple lerp-ing/interpolation/tweening for correcting client side stuff to server positions as they come in (IE: lots you can do with this especially for slower paced games).
Messing a bit with animations can help a lot as well (IE: reload animation being slightly longer on the home client, and slightly faster on remote clients). Also helps a bit for physics where the moment a player takes an action you let them move a tiny bit at a slow speed (and faster start speeds on server/remote clients, but will need a bit of calculus to make this be synced up properly). IE: mostly along the lines of favoring gamefeel/responsiveness at the cost of a small amount of out of sync-ness (often times calculated amounts to eat a little bit of ping time delay, so you can be less aggressive with other methods). (can find a great Halo Netcode video on this on the other linked lists below).
manipulating the "time" in which players play at, normally along the lines of "delayed based" for naming conventions (IE: getting a high ping player to play further in the future compared to the sever, so that their commands arrive at server around the time they took their future action).
having lots of regional servers that players connect to can also be "cheaper" compared to devtime if you're willing to trade with that bit of complexity.
Taking that delayed based netcode, and making it rollback so that one/both (client/server) have the ability rollback in time to change past actions (and queue up future ones).
Weaving between the above there's some level of extra prediction/AI you're able to add for controlling what players remote to the viewing client will do. Though this mostly plays best with rollback, though in a slower game could work with others(IE: fighting games can assume people are likely to take X combo, that they will stop at X point, and similar).
Manipulating the underlying Internet infrastructure with specialized peering deals or laying out your own physical network (check out the Riot article below). This service is even somewhat accessible to larger indies now since there are services that duplicate it ( Glenn Fiedler (Gafferongames) has this company they're working on the topic https://www.networknext.com/ , and there are similar copycats some for games/some for just JavaScript insanity )
Basically if you wanted to you could have a whole team dedicated to getting this just right for a multiplayer game. And it's a really interesting problem to play with since on one hand you're trying to defeat universal constants like the speed of light, and on the other hand you're playing with very soft/noodle-y/unreliable things like underlying network infrastructure. Something you can really nerd yourself out about and keep poking at this essentially forever, instead of making your game.
Here's a smorgasbord of links so you can deal with post mortems and similar rather than my half developed hobby musings (tendency towards softer material instead of technical material) :
http://cranktrain.com/blog/autopsy-of-an-indie-mmorpg-1/
http://cranktrain.com/blog/autopsy-of-an-indie-mmorpg-2/
https://www.gamedeveloper.com/blogs/online-multiplayer-the-hard-way (post mortem of a smash like game, with rollback and some other neat tech)
https://medium.com/meseta-dev
https://web.archive.org/web/20161029212520/http://www.over00.com/index.php/archives/1119
https://web.archive.org/web/20160624154213/http://www.over00.com/?p=1610
https://web.archive.org/web/20070106063538/http://www.devmaster.net/articles/mmorpg-postmortem/part1.php
https://web.archive.org/web/20070106063512/http://www.devmaster.net/articles/mmorpg-postmortem/part2.php
https://web.archive.org/web/20070106063700/http://www.devmaster.net/articles/mmorpg-postmortem/part3.php
https://web.archive.org/web/20070106063812/http://www.devmaster.net/articles/mmorpg-postmortem/part4.php
https://web.archive.org/web/20070106063556/http://www.devmaster.net/articles/mmorpg-postmortem/part5.php
https://www.kinematicsoup.com/news/2019/9/8/the-economics-of-web-based-multiplayer-games?s=gd
https://youtu.be/fFP7c59ezjo (interesting video talking about netcode in brief, and a channel that somewhat infrequently does similar interviews/talks)
https://www.youtube.com/watch?v=ECb31GwoSsM (eventually goes on to 6 rules of MMOs, and interesting experiences related to their time on MMO games dev side). https://www.youtube.com/watch?v=fuz3Bh8FQJQ (2 hours of MMO dev QA, mostly unity focused for engine specific questions). https://youtu.be/x8C63oZMrTU for unity specific multiplayer frameworks.
https://aws.amazon.com/blogs/gametech/the-unique-architecture-behind-amazon-games-seamless-mmo-new-world/ (A technology post mortem and walkthrough of NewWorld. It's a sales pitch, managing AWS services and not being robbed blind for it requires essentially a person/team working full time on intial implementation and upkeep).
More Tutorial-ly:
https://www.radcade.com/how-to-add-network-multiplayer-to-your-indie-game (a brief overview of a simpler game)
https://gafferongames.com/
http://ithare.com/ (This one alternates between being blog like, having the beta version of their good book on multiplayer, and having some of the most in-depth tutorials)
https://www.gabrielgambetta.com/client-server-game-architecture.html
https://www.youtube.com/c/GameDevelopmentCenter/videos (lots of general Godot tutorials, include a good series on multiplayer in the engine).
https://www.youtube.com/user/RainingChain/videos?sort=dd&shelf_id=1&view=0
https://hookrace.net/blog/ddnet-evolution-architecture-technology/
https://www.raphkoster.com/2018/11/13/mailbag-parts-of-an-mmo/
https://youtu.be/rQcxI-ACmZg (Some slower college style lectures)
https://ruoyusun.com/2019/03/28/game-networking-1.html
https://github.com/MFatihMAR/Game-Networking-Resources (This is a list maintained by someone else, and it has some amazing things in it, and far more technical leaning than what I maintain).
https://gist.github.com/maniwani/f92cc5d827b00163f5846ea7dcb90d44 (Useful list of terminology, and useful search terms)
There are also tons of HTML 5/Node/JavaScript multiplayer tutorials that are under 2 years old (though these focus on the simpler parts in the initial steps, not the complex ones like handing off rooms between servers, having more than one server, or lag compensation) :
https://victorzhou.com/blog/build-an-io-game-part-1/ (two part series)
http://antriel.com/post/online-platformer-1/ (a several part series)
http://buildnewgames.com/real-time-multiplayer/
https://www.dynetisgames.com/2017/03/06/how-to-make-a-multiplayer-online-game-with-phaser-socket-io-and-node-js/
"interesting" tech overviews:
https://technology.riotgames.com/news/fixing-internet-real-time-applications-part-i (Riot talking about building out their own backbones, and going over some of the more obnoxious technical limitations of modern internet infrastructure. In three parts)
https://amar.io/thesis.pdf (A thesis going over a large number of the problems and solutions of P2P networking)
“Engines" though different than what you'd think, since most of these work with multiple client side engines:
https://colyseus.io/ (Authoritative server, that works with many engines JavaScript/Phaser/Unity/Haxe/Defold)
https://www.modd.io/ (Designer and non-programmer focused)
https://mirror-networking.com/ (Unity specific, looks nice but don't use unity myself).
https://timetocode.com/nengi (Authoritative server for JavaScript stuff)
https://blog.hathora.dev/ (Haven't had time to poke at it yet, but TypeScript. Looks focused at using AWS from the start for higher built in scalability than other options, also some nice looking tutorials. Also have a nice general blog to poke at: https://blog.hathora.dev/ )
https://www.photonengine.com/en-us/Photon (Enterprise level for just about any engine)
http://www.coffeemud.org/
https://www.eclipseorigins.com/ (don’t recommend due to VB6)
/r/gamedev/comments/k2mvgn/official_baas_backend_as_a_service_discord_for/ (Discord for a bunch of other services, along with an awesome summary spreadsheet for them in that post)
Creative people make great con targets. Gamedevs are the same.
They were probably disappointed they didn't get through.
In Before Fullsail's legal starts their hunting party.
If you don't know if your scope is too wide, the answer is always yes it is.
You don't. Most professional teams target around 100 players per CPU core. ITHare is probably the favored resource I like to send people towards for reading for technical info, and getting a grasp on the scale of what you're asking. You're at the point where you're scaling well past single server capability, and at the point where expenses skyrocket massively (along with narrowing your pool of hireable candidates massively).
5k in the same area/screen is fundamentally impossible to have the actually synced. A home connection just won't have the bandwidth. Unless you're taking some interesting shortcuts with your game design.
At the 5k online point you're at the point where even securing your client is a full time job for a team member, along with several people being required to stay trained. Incase something big happens.
Here's a link spam so you can deal with post mortems and similar rather than my half developed hobby musings:
http://cranktrain.com/blog/autopsy-of-an-indie-mmorpg-1/
http://cranktrain.com/blog/autopsy-of-an-indie-mmorpg-2/
https://www.gamedeveloper.com/blogs/online-multiplayer-the-hard-way (post mortem of a smash like game, with rollback and some other neat tech)
https://medium.com/meseta-dev
https://web.archive.org/web/20161029212520/http://www.over00.com/index.php/archives/1119
https://web.archive.org/web/20160624154213/http://www.over00.com/?p=1610
https://web.archive.org/web/20070106063538/http://www.devmaster.net/articles/mmorpg-postmortem/part1.php
https://web.archive.org/web/20070106063512/http://www.devmaster.net/articles/mmorpg-postmortem/part2.php
https://web.archive.org/web/20070106063700/http://www.devmaster.net/articles/mmorpg-postmortem/part3.php
https://web.archive.org/web/20070106063812/http://www.devmaster.net/articles/mmorpg-postmortem/part4.php
https://web.archive.org/web/20070106063556/http://www.devmaster.net/articles/mmorpg-postmortem/part5.php
https://www.kinematicsoup.com/news/2019/9/8/the-economics-of-web-based-multiplayer-games?s=gd
https://www.youtube.com/watch?v=ECb31GwoSsM (eventually goes on to 6 rules of MMOs, and interesting experiences related to their time on MMO games dev side). https://www.youtube.com/watch?v=fuz3Bh8FQJQ (2 hours of MMO dev QA, mostly unity focused for engine specific questions). https://youtu.be/x8C63oZMrTU for unity specific multiplayer frameworks.
https://aws.amazon.com/blogs/gametech/the-unique-architecture-behind-amazon-games-seamless-mmo-new-world/ (A technology post mortem and walkthrough of NewWorld. It's a sales pitch, managing AWS services and not being robbed blind for it requires essentially a person/team working full time on intial implementation and upkeep).
More Tutorial-ly:
https://www.radcade.com/how-to-add-network-multiplayer-to-your-indie-game (a brief overview of a simpler game)
https://gafferongames.com/
http://ithare.com/ (This one alternates between being blog like, having the beta version of their good book on multiplayer, and having some of the most in-depth tutorials)
https://www.gabrielgambetta.com/client-server-game-architecture.html
https://www.youtube.com/user/RainingChain/videos?sort=dd&shelf_id=1&view=0
https://hookrace.net/blog/ddnet-evolution-architecture-technology/
https://www.raphkoster.com/2018/11/13/mailbag-parts-of-an-mmo/
https://youtu.be/rQcxI-ACmZg (Some slower college style lectures)
https://ruoyusun.com/2019/03/28/game-networking-1.html
https://github.com/MFatihMAR/Game-Networking-Resources (This is a list maintained by someone else, and it has some amazing things in it, and far more technical leaning than what I maintain).
There are also tons of HTML 5/Node/JavaScript multiplayer tutorials that are under 2 years old (though these focus on the simpler parts in the initial steps, not the complex ones like handing off rooms between servers, having more than one server, or lag compensation) :
https://victorzhou.com/blog/build-an-io-game-part-1/ https://victorzhou.com/blog/build-an-io-game-part-2/
http://antriel.com/post/online-platformer-1/ http://antriel.com/post/online-platformer-2/ http://antriel.com/post/online-platformer-3/ http://antriel.com/post/online-platformer-4/ http://antriel.com/post/online-platformer-5/
http://buildnewgames.com/real-time-multiplayer/
https://www.dynetisgames.com/2017/03/06/how-to-make-a-multiplayer-online-game-with-phaser-socket-io-and-node-js/
"interesting" tech overviews:
https://technology.riotgames.com/news/fixing-internet-real-time-applications-part-i (Riot talking about building out their own backbones, and going over some of the more obnoxious technical limitations of modern internet infrastructure. In three parts)
https://amar.io/thesis.pdf (A thesis going over a large number of the problems and solutions of P2P networking)
“Engines" though different than what you'd think, since most of these work with multiple client side engines:
https://colyseus.io/ (Authoritative server, that works with many engines JavaScript/Phaser/Unity/Haxe/Defold)
https://www.modd.io/ (Designer and non-programmer focused)
https://mirror-networking.com/ (Unity specific, looks nice but don't use unity myself).
https://timetocode.com/nengi (Authoritative server for JavaScript stuff)
https://blog.hathora.dev/ (Haven't had time to poke at it yet, but TypeScript. Looks focused at using AWS from the start for higher built in scalability than other options, also some nice looking tutorials. Also have a nice general blog to poke at: https://blog.hathora.dev/ )
https://www.photonengine.com/en-us/Photon (Enterprise level for just about any engine)
http://www.coffeemud.org/
https://www.eclipseorigins.com/ (don’t recommend due to VB6)
/r/gamedev/comments/k2mvgn/official_baas_backend_as_a_service_discord_for/ (Discord for a bunch of other services, along with an awesome summary spreadsheet for them in that post)