<Server> Understanding Game Servers(C++)
Monday, Apr 14, 2025
Web Server vs Game Server Web Server:
small # of requests per user don’t need real-time interaction Server doesn’t approach client first Stateless - forgets user after request is done Usually uses web frameworks ex) drivethrough Game Server:
a lot of request/response real-time interaction stateful cannot use web framework (different needs for each game) ex) restaurant - constant service to the user C++ Thread #include <thread>
#include <thread> int main() { std::thread t; // CPU core number int t.