Git Product home page Git Product logo

normos's Introduction

Node.js gRPC-based communication middleware for MMOG server

Introduction

This is a backend middleware to achieve MMOGs architectural and modular programming. MMOG stands for the massively multiplayer online game where a lot of players log in and play concurrently at the same time. In this case, I aim to design a common system and generic functions that often exist in online games. I abstract them as middleware for future maintenance and new specific game design.

The MMOG's servers might include GameServer, WorldServer, AuthServer, MessageServer, LoginServer, DatabaseServer, CommonDatabaseServer, ProxyServer and LogServer. Thereof, GameServer is attached by WorldServer, DatabaseServer, ProxyServer, etc. And could have many depending on the scale of the player base. There is a DBMS attached to DatabaseServer and CommonDatabaseServer.

Use Case

The overall typical MMOG server architecture design is as follows. This uses both the space division method and the parallel world method. The space division method means to divide the whole world map into small regions, and each cluster/process(GameServer) serves each region. The parallel world method establishes a new entire world in which the database system and game server are separate from another world.
nodejs-grpc-middleware-mmog-server-overall-architecture
Credit: This content takes reference to 《オンラインゲームを支える技術 -- 壮大なプレイ空間の舞台裏》 by Kengo Nakajima.

In this architecture, the line indicates the communication between one server to another which carry different role and functions. This communication could be either unary or bidirectional. I seek remote procedural call framework - gRPC as one of the important technical stacks. Due to its efficiency, we can design a low latency and stateful massively multiplayer online game server system.

Client-side support

  1. Godot Engine's HTTPS + websocket is supported for client-side in this case for server-client communication.
  2. Unreal Engine's SSL + FSocket is supported for server-client communication.
  3. Unity WebSocketSharp connection is supported.

normos's People

Contributors

cloudchentrial avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.