Coder Social home page Coder Social logo

http3's Introduction

使用Netty实现的http3服务器,可以同时启动http、https、http3服务器,用于测试比较

启动服务端时,会生成big.data(1GB)和small.data(1KB),客户端会分别使用http,https,http3下载。如果是使用负载均衡 如nginx,clb等等,还可以测试http3通过udp转发透传,私有协议或者http使用quic监听器tcp做四层转发。 所以总共可测量的场景为

  1. http-lb(http)-http
  2. https-lb(https)-http
  3. http3-lb(http3)-http
  4. http3-lb(udp)-http3
  5. quic-lb(quic)-tcp
  6. http over quic-lb(quic)-tcp

通过测试clb的结果为:

1(无需加密)>2(clb硬件加速)>5(私有协议)>6(tcp四层转发)>3(clb硬件加速)>4(服务器需自身处理加解密)

在内网环境选择http进行明文传输,速度最快。在外网环境可以根据网路环境在http3和quic私有协议间进行切换 (考虑私有协议的开发难度与周期,我们可以选择http作为我们的私有协议,即http over quic)。

启动服务端

./gradew -Pserver run

启动客户端

./gradew run

http3's People

Contributors

felixncheng 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.