Checking how our applications run under load is an essential part of the software development lifecycle, so we can make sure our systems can handle expected and unexpected traffic. However, many developers and testers gloss over this important step.
These days, load testing your applications is as simple as ever. In this video, I'll talk about how to get started with my favorite load testing tool, Artillery (https://artillery.io/). Artillery is an easy-to-use yet powerful open-source load testing tool that supports HTTP, WebSockets, GraphQL, and more. Along with its built-in support for running load tests on the cloud and plugins ecosystem, it's an excellent choice for verifying the performance and resilience of your infrastructure.
*Thanks for watching!*
If you find this video helpful, consider subscribing to this channel for more tips on helping Rails developers ship their code with more confidence, from development to deployment.
You can also check my website for more in-depth articles covering Rails, testing, DevOps, and other software engineering topics: https://dennmart.com/
*Additional resources:*
- Battle-Test Your API With Artillery Load Testing: https://dev-tester.com/battle-test-your-api-with-artillery-load-testing/
*Chapters:*
0:00 - Introduction
2:02 - What is Artillery?
2:46 - Intro to demo
3:32 - Installing Artillery
4:43 - Configuring our first load test
8:14 - Creating our first load test scenario
10:21 - Running our first load test
11:19 - Adding additional load phases
13:34 - Running end-to-end load test
14:13 - Setting request body to POST requests
15:34 - Capturing response data using JSONPath
17:37 - Setting request headers for authentication
21:30 - Wrapup
*Related Links:*
- Artillery homepage: https://artillery.io/
- Artillery documentation: https://www.artillery.io/docs
- Airport Gap: https://airportgap.com/
- Node.js homepage: https://nodejs.org/
- nvm (Node Version Manager): https://github.com/nvm-sh/nvm
- asdf (Multiple Runtime Version Manager): https://asdf-vm.com/
- JSONPath tutorial: https://restfulapi.net/json-jsonpath/
*Background music used in video:*
- Summer Adventures by SergePavkinMusic: https://pixabay.com/users/sergepavkinmusic-6130722/
*Video clips used in video:*
- Video by james from Pexels: https://www.pexels.com/video/frustrated-young-guy-yelling-over-his-laptop-5125919/