Skip to content

shonaighdouglas/RequestGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RequestGenerator

RequestGenerator is created to help stress test the entire distributed system with various loads.

Example/default scenario: 100 different users each submitting single booking requests for a single dental office within a time-interval of ten seconds.

MQTT Prerequirements

Installation Guide

Make sure to have the Booking component running before running the RequestGenerator.

  1. Clone repository to your machine
  2. Open a terminal window (e.g. Command Prompt) and move to the root folder of the repository. Enter command mvn clean install This will create a target folder.
  3. To ensure that installation was successful, check target folder for RequestGenerator.jar file.
  4. Move to target folder and enter command java -jar RequestGenerator.jar. This will enable the RequestGenerator to start publishing requests to the MQTT Broker.

How to setup a scenario

To change:

  • the number of requests made per user, change the NUMBER_OF_REQUESTS_PER_USER variable.
  • the topic to publish requests to, change the TOPIC variable.
  • the dentist office to make booking requests to, change the DENTIST_ID variable.
  • the number of users that sends requests, change the NUMBER_OF_USERS variable.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages