This example project was put together to evaluate the potential of using Vert.x instead of Spring Boot. Vert.x is a lot more light weight and will boot much faster than a typical Spring application. This will be better in a cloud environment such as AWS where being able to to auto-scale rapidly is important.
URL | purpose |
---|---|
http://localhost:8888/metrics | prometheus metrics endpoint |
http://localhost:8888/joke | makes an async call to icanhazdadjoke.com then returns text/plain |
http://localhost:8888/jokes | makes an async call to icanhazdadjoke.com then returns json |
http://localhost:8888/greeting | returns a random greeting string as text/plain |
mvn clean compile exec:java
mvn clean package
java -jar target/vertx-example-1.0.0-SNAPSHOT-fat.jar
docker build -t vertx-example .
docker run -dp 8888:8888 vertx-example