GithubHelp home page GithubHelp logo

webserver_v_2.0's Introduction

WEB SERVER 2.0

Based on more mordern C++

Features

  1. 使用Epoll I/O多路复用技术实现高并发的Reactor模型
  2. 使用Epoll ET边缘触发模式,实现了非阻塞,高并发的通信,提高了服务器的吞吐量和响应速度
  3. 使用线程池并发处理HTTP请求和响应
  4. 使用std::vector封装char,实现动态增长的读写缓冲区
  5. 使用C++11 std::atomic,避免data race

压力测试

使用webbench测试,QPS接近6000 benchtest

TODO

  • 实现计时器,关闭长时间未响应的链接
  • 实现POST请求解析
  • 实现支持路由绑定的对外接口

webserver_v_2.0's People

Contributors

454270186 avatar

Watchers

 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.