Skip to content

Xendit #0009 - Load Testing #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2020
Merged

Conversation

jjjimenez100
Copy link
Owner

Background

Please implement load testing to ensure your service can handle a high amount of traffic

Acceptance Criteria

  1. Implement load testing using artillery
    1. Create a PR against master of your fork including artillery
    2. Ensure that load testing is able to be run using npm test:load. You can consider using a tool like forever to spin up a daemon and kill it after the load test has completed.
    3. Test all endpoints under at least 100 rps for 30s and ensure that p99 is under 50ms

Description
The PR adds artillery as a dependency, as well as a load-testing yml config file to be used. The load test checks GET rides/, POST rides/, and GET rides/${id}.
image

Config file is set to ensure p99 is under 50ms.
Nodemon is used to spin up the server and automatically restart it, in any case that it crashes during the load testing.

@jjjimenez100 jjjimenez100 merged commit b33441c into master Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant