Load testing the Depot API
You can load test the Depot API (Connector) application with the Depot CLI's load-test command.
Background
The Depot Connector is an application that provides the data APIs for your environment, as well as event and notification processing. This application runs in a container (or many containers if you have enabled autoscaling).
Each Connector task uses a number of threads to process incoming messages. The number of threads is dependent on the "Task Size" you have configured the Environment's frontend configuration with.
These threads are used to dequeue incoming messages from the primary events queue for your environment.
The load-test command will send 'n' number of batches of 10 'no-op' messages to your environment's primary events queue. Depot Connector won't do anything with these messages, but it will use it's worker threads to receive and parse them, resulting in some CPU time being used.
Load test
depot load-test
The above command will send a single batch of 10 messages to your currently configured environment for processing.
Use the --batches argument to designate how many batches of 10 messages should be sent. E.g. --batches 50 would result in 500 messages being sent.