Skip to content

BIAS-Cloud/Load-Microservice

Repository files navigation

Load Simulator Microservice

Quality Gate Status Coverage Maintainability Rating Security Rating Reliability Rating Vulnerabilities

This microservice simulates a microservice with a REST endpoint at /resource/{resource_id}. There is a tutorial on Medium here.

Languages and frameworks

  • Kotlin 1.4.30
  • Micronaut Framework 2.4.1
  • Swagger UI

Libraries

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/

You can try the API using the Swagger interface embedded on this microservice.

There is a tutorial on Medium here.

Configuration

The processing-time property in theapplication.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!

Citation

This work was published in the WoSC7:

Jaime Dantas, Hamzeh Khazaei and Marin Litoiu. 2021. BIAS Autoscaler: Leveraging Burstable Instances for Cost-Effective Autoscaling on Cloud Systems. In Seventh International Workshop on Serverless Computing (WoSC7) 2021 (WoSC ’21), December 6, 2021, Virtual Event, Canada. ACM, New York, NY, USA, 8 pages. https://doi.org/10.1145/3493651.3493667

About

Microservice with a RESTful API and adjustable settings

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages