Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singingbush/vertx-example
Example micro-service using Vert.x
https://github.com/singingbush/vertx-example
vertx
Last synced: 20 days ago
JSON representation
Example micro-service using Vert.x
- Host: GitHub
- URL: https://github.com/singingbush/vertx-example
- Owner: SingingBush
- Created: 2021-10-11T12:23:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T18:16:09.000Z (11 months ago)
- Last Synced: 2024-10-31T16:06:10.261Z (2 months ago)
- Topics: vertx
- Language: Java
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Vert.x Example
==============[![Maven](https://github.com/SingingBush/vertx-example/actions/workflows/maven.yml/badge.svg)](https://github.com/SingingBush/vertx-example/actions/workflows/maven.yml)
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 |# Run the application
```
mvn clean compile exec:java
```# Build an executable jar (fat jar) and run it
```
mvn clean package
java -jar target/vertx-example-1.0.0-SNAPSHOT-fat.jar
```# Build and run in a local docker container
```
docker build -t vertx-example .
docker run -dp 8888:8888 vertx-example
```# Addition Resources
* https://vertx.io/docs/[Vert.x Documentation]
* https://stackoverflow.com/questions/tagged/vert.x?sort=newest&pageSize=15[Vert.x Stack Overflow]
* https://groups.google.com/forum/?fromgroups#!forum/vertx[Vert.x User Group]
* https://gitter.im/eclipse-vertx/vertx-users[Vert.x Gitter]