Spike Testing on JSON Placeholder - K6 & Jenkins π
JSON Placeholder is a free online REST API that serves as a testing ground for developers. It provides a set of fake data endpoints, such as users, posts, and todos, which mimic real-world API responses.
For this test, I conducted Spike Testing using K6, a powerful performance testing tool π οΈ. The objective was to evaluate how well the API handles sudden surges in traffic π. This type of testing helps identify whether the API remains stable and reliable even under extreme loads. By simulating traffic spikes, we can detect performance bottlenecks and potential failures before they impact end-users.
The API endpoints tested:
Each endpoint was tested for different functionalities:
To simulate real-world usage, I designed different scenarios where these endpoints experience sudden bursts of requests, analyzing how well the system adapts under stress. To determine whether the API endpoints were stable under a spike load, I monitored the following K6 parameters:
These key metrics help gauge the systemβs resilience under sudden bursts of traffic, providing insights into whether further optimizations are needed.
Testing Tools
K6
Jenkins
Check the repository
json-placeholder-k6