https://github.com/mirellawanessa/load-microservice
Microservice with a RESTful API and adjustable settings
https://github.com/mirellawanessa/load-microservice
api-rest kotlin kotlin-fluent-validator load-testing micronaut micronaut-framework micronaut-gradle microservice restful-api simulator-microservice swagger-ui
Last synced: 10 months ago
JSON representation
Microservice with a RESTful API and adjustable settings
- Host: GitHub
- URL: https://github.com/mirellawanessa/load-microservice
- Owner: Mirellawanessa
- License: mit
- Created: 2025-03-07T12:12:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T16:35:17.000Z (10 months ago)
- Last Synced: 2025-03-07T17:29:57.902Z (10 months ago)
- Topics: api-rest, kotlin, kotlin-fluent-validator, load-testing, micronaut, micronaut-framework, micronaut-gradle, microservice, restful-api, simulator-microservice, swagger-ui
- Language: Kotlin
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> ℹ️ **NOTE:** This repository was developed during a technical course on the [DIO](https://dio.me) platform.
# Load Simulator Microservice
[](https://sonarcloud.io/dashboard?id=jaimedantas_load-microservice)
[](https://sonarcloud.io/dashboard?id=b3-tax-calculator)
[](https://sonarcloud.io/dashboard?id=jaimedantas_load-microservice)
[](https://sonarcloud.io/dashboard?id=jaimedantas_load-microservice)
[](https://sonarcloud.io/dashboard?id=jaimedantas_load-microservice)
[](https://sonarcloud.io/dashboard?id=jaimedantas_load-microservice)
This microservice simulates a microservice with a REST endpoint at ``/resource/{resource_id}``.
## Languages and frameworks
- Kotlin 1.4.30
- Micronaut Framework 2.4.1
- Swagger UI
## Libraries
- [Java Fluent Validator](https://github.com/mvallim/java-fluent-validator)
## Requirements
- JDK 11
- Gradle 6.8.3
## Building From Source
To build from source checkout the code and run:
```
$ gradle clean build
```
## Run
To run the microservice, run:
```
$ java -jar load-simulator-0.1.jar
```
## Documentation
Swagger UI is used for documentation. You can find the information accessing its webpage at:
```
http://localhost:8080/swagger/views/swagger-ui/
```
## Configuration
The ``processing-time`` property in the``application.yml`` defines the average processing time of each HTTP
request in ms. The minimum value for the processing time is 50ms. You can also define the number of threads and the response
message.
```
micronaut:
processing-time: 100
threads: 2
return-message: Hello World!
```
## 👩💻 Expert
   Mirella Wanessa
   
GitHub |
LinkedIn
|
Instagram
|
---
⌨️ with 💜 by [Mirella Wanessa](https://github.com/Mirellawanessa)