Sample microservice that features Micronaut and GRPC server. The service is not relying on reflection thanks to Micronaut, Protobuf and Kotlinx.serialization AOT capabilities.
./gradlew run
./gradlew build
java -jar build/libs/users-{APP_VERSION}-all.jar
./gradlew jibDockerBuild
cd k6
npm start
cd k6
npm run build
k6 run dist/app.bundle.js
The official K6 options are described here.
The following additional options are available :
# number of initial iteration
k6 run -e init_iter=0
# number of find iteration
k6 run -e find_iter=1
# network latency, useful when thresholds defined
k6 run -e network_latency=0
# call_interval
k6 run -e call_interval=1
# number of targeted VUs at plateau
k6 run -e plateau_target=20