Skip to main content
Warning This document has not been updated for a while now. It may be out of date.
Last updated: 7 May 2021

email-alert-api: Load test Email Alert API

You may wish to load test Email Alert API to get a realistic idea of how the system performs when it has a large quantity of emails to create and send. This can be useful to provide data on where the system may have performance bottlenecks.

To perform a load test you will need:

  • A mechanism to artificially create a quantity of work for Email Alert API to do - we previously had a number of rake tasks to allow this;
  • An approach to simulate the delay of an actual request to Notify - we previously used a Kernel.sleep(0.1) to apply this.

When performing the test you should inform the #govuk-2ndline channel as they may see alerts during it.