Code Monkey home page Code Monkey logo

pomelo-go's Introduction

pomelo-go

pomelo go服务框架

通过go实现pomelo通信协议,接入到node pomelo集群

框架

整体的框架图,如下所示:

各个模式的作用分为:

  1. clusterpb: pomelo集群内部的通信协议,目前只完成了mqtt的协议实现
  2. server: pomelo-go的服务框架实现,一个进程只启动一个server实例,其内部处理服务注册,服务发现,接收服务消息,路由分发等工作
  3. LocalHandler: 处理本地或远程Handler调用
  4. masterClient: 与master通信的客户端 对应node pomelo的monitor模块
  5. rpcClient: member client的消息通信连接池
  6. memberServer: 本服务的MemberServer服务代理

example

参考 app/custom/main

TODO LIST

1. handler中间件(系统配置+用户自定义)、超时控制
2. master服务注册边界场景
3. 对外RPC调用
4. 前端服务实现支持
5. master服务实现支持

pomelo-go's People

Contributors

zhengjiaming1-tal avatar

Stargazers

 avatar  avatar Xiangyang Han avatar  avatar Peng Lee avatar

Watchers

黑夜路人 avatar  avatar Kevin Wan avatar  avatar Jinchao avatar wsforever avatar cloud avatar  avatar Hito avatar  avatar 沧海 avatar  avatar

Forkers

chmm828

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.