JMeter can be used to performance-test your microservice applications. It includes the following tests:
Load test: Multiple users can access the microservice concurrently to test its expected usage.
Stress test: This tests the maximum load capacity. The purpose of stress testing is to recognize the maximum load that the server can handle without any errors.
JMeter creates a copy of the samplers, which can then be run in multiple threads. The following diagram shows how JMeter's load test simulates a heavy load:
In the preceding diagram, you can see that there are a number of samplers for the microservice that is being tested. We'll now look at how to create performance test plans.