Before we implement data paging, let's see how the current implementation performs under load:
- Let's start our REST API by pressing F5 in Visual Studio, if it's not already running.
- Now, we can load test the current implementation using WebSurge. Let's set the request URL path to /api/questions?search=question and stick to a duration of 30 seconds with 5 threads.
- Before running the load test, check that the request works okay by clicking the Test option. We may get an error in the response body like the following one:
This error can be resolved by changing the MaxResponseSize setting to 0:
- Start ...