Giter VIP home page Giter VIP logo

hpnetserver's Introduction

high Performance Network Server


目标: 高性能TCP网络服务器程序

简介: 程序架构采用master-worker模型,并利用libevent网络库来实现one loop per thread(一个事件循环一个线程)的IO模型,采用Round-Robin轮询调度模式。

运行环境:

  • 支持平台: x86-64 linux
  • 开发语言: C++
  • 开发平台: CentOS release 6.3
  • linux内核版本: 2.6.32-279.el6.x86_64
  • gcc 版本: 4.4.6
  • libevent版本: 2.0.21

参考文章

将其改造为网关服务实现的一个简单微服务框架

  • 演化开源项目——simple_microservices_framework :包括一个网关(类似于Nginx,承载前端网络层处理、后端微服务调度等),一个后端应用微服务示例

配和客户端库使用

  • 配套开源项目——RPC_Framework: 基于TCP协议的远程过程调用框架(客户端)
    1. 客户端和服务端均分为业务层,协议层(JSON),网络层(libevent),可以根据自己的业务定制每一层的接口;

    2. 客户端实现了与服务端的短连接请求,长连接请求,服务端的推送消息;

    3. 客户端提供跨平台的支持,目前已经经过windows,linux,android,ios的测试;

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.