RPC / REST
Last updated
What is RPC / REST?
RPC (Remote Procedure Call) and REST (Representational State Transfer) are two different approaches to client-server communication. RPC is a procedure-oriented service, where the client sends a request to the server invoking a specific procedure along with the parameters it needs to execute. The server-side program then processes these inputs and returns the result back to the client. On the other hand, REST is a resource-oriented architecture, leveraging standard HTTP methods like GET, POST, PUT, DELETE to perform operations. In REST, every single information or service is considered as a "resource".
In the context of game development, both RPC and REST can be used depending on the specific needs of the game and the underlying architecture that supports it. Both of them offer unique characteristics that make them suitable for different aspects or modules inside a game like character control, game state management, real-time networking, etc. While RPC might be more suited for real-time, fast communication, REST can be leveraged for independent, scalable, and stateless nature of its design.
In sum, RPC and REST terms come up frequently in server-side game development due to their importance in determining how your game will communicate between its different parts, especially in multiplayer environments. It is crucial to make the appropriate choice based on your game's requirements and desired user experience.
Free resources to learn RPC / REST
More in stage 18: RPC / REST
RPC / REST: common questions
Can I learn RPC / REST in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain RPC / REST in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this RPC / REST tutorial for beginners?
It is lesson 106 of 156 in the free Server Side Game Developer roadmap, in stage 18, RPC / REST. If you are new to Server Side Game Developer, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.