Skip to content

vietj/http2-showcase

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vert.x HTTP/2 showcase

This projects aims at showing Vert.x HTTP/2 capabilities.

To run the project, simply run ./gradlew run from the project's root directory, then point your browser at https://localhost:4043/image.hbs to get started.

Two HTTP servers are running:

  • An HTTP/1.1 server running on http://localhost:8080
  • An HTTP/2 server running on port https:/localhost:8443

They both are running the exact same code, the only difference is that the second one has been declared with a specific option : setUseAlpn(true).

By default, when running on your local machine, a latency of 100ms is arbitrarily simulated. So that you can figure out the difference it makes in a real-life environment. You can change the latency by clicking on the links on the right of the image, or by adding a query parameter named latency to the page's URL.

e.g. http://localhost:8080/image.hbs?latency=999

The project uses :

Licensed under Apache 2.0 license

Any contribution is welcome.

About

Showcase for http2 Vert.x server vs. standard http

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages