Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aesteve/http2-showcase
Showcase for http2 Vert.x server vs. standard http
https://github.com/aesteve/http2-showcase
demo http2 vertx vertx-web
Last synced: 3 months ago
JSON representation
Showcase for http2 Vert.x server vs. standard http
- Host: GitHub
- URL: https://github.com/aesteve/http2-showcase
- Owner: aesteve
- Created: 2016-02-21T09:33:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T07:13:35.000Z (over 7 years ago)
- Last Synced: 2024-10-04T19:10:04.841Z (4 months ago)
- Topics: demo, http2, vertx, vertx-web
- Language: Java
- Size: 267 KB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- vertx-awesome - HTTP/2 showcase - A simple demo, showing how HTTP/2 can drastically improve user experience when a huge latency is involved. (Examples)
README
### Vert.x HTTP/2 showcase
This projects aims at showing [Vert.x](http://vertx.io) [HTTP/2](https://en.wikipedia.org/wiki/HTTP/2) capabilities.
To run the project, simply run `./gradlew run` from the project's root directory, then point your browser at [http://localhost:8080](http://localhost:8080) to get started.
Two HTTP servers are running:
* An HTTP/1.1 server running on http://localhost:8080
* An HTTP/2 server running on https://localhost:8443They 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](http://localhost:8080/image.hbs?latency=999)
The project uses :
* [Vert.x](http://vertx.io)
* [Vert.x web](http://vertx.io/docs/#web)
* [Handlebars](https://github.com/jknack/handlebars.java) as template engineLicensed under [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0)
Any contribution is welcome.