- Java (developed under JDK 12)
- docker, docker-compose
Backend average latency is less than 1ms ( logged in microseconds 😇 ).
Writes:
- e2e average latency : 452 µs
- e2e max latency : 12918 µs
- e2e min latency : 17 µs
- throughput: 8688 requests /s
Reads:
- e2e average latency : 693 µs
- e2e max latency : 9487 µs
- e2e min latency : 13 µs
- throughput: 5737/s
To generate coverage reports run:
./gradlew clean test ci
Coverage reports will be available under:
- backend:
./shortener-service/build/reports/jacoco/test/html/index.html - front-end:
./shortener-app/app/coverage/lcov-report/index.html
To run the application (It may take a couple of minutes):
./gradlew clean dockerComposeUp
Note: make sure to have 9080 & 9081 ports available, or edit the template file ./shortener-deployment/docker-compose-template.yml to your convenience.
The front-end application will available at the http://127.0.0.1:9080