GithubHelp home page GithubHelp logo

cyifei / highperformanceconcurrentserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from candyconfident/highperformanceconcurrentserver

0.0 0.0 0.0 89 KB

基于C++11、部分C++14/17特性的一个高性能并发httpserver,包括日志、线程池、内存池、定时器、网络io、http、数据库连接等模块。模块间低耦合高内聚,可作为整体也可单独提供服务。对各模块提供单元测试,对httpserver整体提供性能测试。

C++ 80.14% CMake 2.58% Shell 0.49% C 12.29% Makefile 2.20% Roff 2.30%

highperformanceconcurrentserver's Introduction

Env

  • Linux version 5.3.0-28-generic
  • gcc version 7.5.0
  • Ubuntu 18.04.1
  • cmake version 3.17.0

Build

  ./build.sh

Description

  基于C++11、部分C++14/17特性的一个高性能并发网络服务器,包括目前已实现日志、线程池、内存池、定时器、网络io等模块。模块间低耦合高内聚,可作为整体也可单独提供服务。对各模块提供了单元测试。
  网络io使用epoll LT触发模式,采用主从reactor设计。提供同步和异步日志,内存池使用哈希表、链表结合的管理,线程池支持任意任务参数和任务结果返回,定时器使用最小堆管理、支持多执行线程、支持在指定时间后执行任务、支持周期性执行任务、支持指定时间间隔重复执行指定次数任务、支持取消定时器等。
  具体设计参考各目录下readme。

TODO List

  • http解析设计与实现
  • 数据库连接池及缓存设计与实现
  • C++20模块与协程引入
  • 日志优化:参考Nanolog设计,引入日志压缩、无锁队列、寄存器记录时间、减少缓存miss等方案
  • 使用lua脚本语言,配置服务器ip、port,并检查参数合法性
  • 引入gtest测试框架,整合单元测试
  • test

highperformanceconcurrentserver's People

Contributors

candyconfident avatar alberttrebla 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.