Skip to content
Projects

About

A high-performance TCP server that now reliably supports hundreds of thousands of concurrent connections on a single machine.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

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的测试;

Explore related projects

Loading…