Git Product home page Git Product logo

load-microservice's Introduction

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!

load-microservice's People

Contributors

jaimedantas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.