Coder Social home page Coder Social logo

micserver's Introduction

MICServer

micserver 是一个为分布式系统设计的服务器框架,以模块为服务的基本单位。底层模块间使用 TCP 及自定义二进制编码格式通信,底层实现优先考虑时间效率。

使用 ROC(Remote Object Call)远程对象调用作为模块间的主要通信接口,不关心服务模块本身,而是将上层业务作为对象注册到 micserver 中,寻址路由均由底层维护,只需要知道目标调用对象的 ID 即可调用,不需要关心目标所在的模块。得益于 ROC 抽象,使所有业务状态都可以与服务本身解耦,可以轻松将各个 ROC 对象在模块间转移或加载,实现分布式系统的无状态/热更/容灾冗余等特性。

你可以在示例程序中了解 micserver 的基本使用方法。

目前 micserver 不需要任何第三方包。

适用于谁?

本框架设计初衷,是个人开发者或者低成本团队中能以最简单步骤建立一个能用于生产的服务器集群。

至少适用于以下业务场景:

  1. 服务端主动驱动业务,如游戏服务器,互联网等应用中的主动推送业务,主动式监控。
  2. 物联网服务。

安装

go get github.com/liasece/micserver

官方文档

GoDoc

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.