|
1 | 1 | ---
|
2 | 2 | title: "Monitoring NServiceBus Demo - Message backlogs"
|
3 |
| -reviewed: 2023-11-07 |
| 3 | +reviewed: 2025-08-18 |
4 | 4 | summary: Using the Particular Service Platform to measure inter-endpoint performance and look for congestion with the queue length and critical time metrics
|
5 | 5 | suppressRelated: true
|
6 | 6 | ---
|
@@ -36,24 +36,24 @@ The following walkthrough shows how to identify changes in an endpoint's backlog
|
36 | 36 |
|
37 | 37 | **Run the sample solution. Open ServicePulse to the Monitoring tab.**
|
38 | 38 |
|
39 |
| - |
| 39 | + |
40 | 40 |
|
41 | 41 | Look at the queue length and critical times for each endpoint. By default, the ClientUI endpoint is sending one order per second into the system, and the system can keep up. Queue lengths are hovering around zero as messages are not waiting around in input queues. Critical times remain very similar to processing times since most of a message's critical time is the amount of time it takes to process.
|
42 | 42 |
|
43 |
| -Let's see what happens when we apply more pressure to the system. |
| 43 | +Next, observe what happens when more pressure is applied to the system. |
44 | 44 |
|
45 | 45 | **Find the ClientUI endpoint window and toggle High-Throughput mode. Now go back to the ServicePulse Monitoring tab.**
|
46 | 46 |
|
47 |
| - |
| 47 | + |
48 | 48 |
|
49 | 49 | Now, look at the queue length and critical time for each endpoint. Notice that there isn't that much change for the Billing and Shipping endpoints. The Sales endpoint is quickly running into difficulties though. Once it hits its throughput limit, the Sales queue length starts to ramp up. As it does, the critical time also starts to climb. The Sales endpoint is becoming less responsive as its backlog of work increases.
|
50 | 50 |
|
51 | 51 | > [!NOTE]
|
52 |
| -> The sample endpoint included in the demo has been artificially limited so that it can handle only four messages concurrently. |
| 52 | +> The sample endpoint in the demo is artificially limited to handle only four messages concurrently. |
53 | 53 |
|
54 | 54 | **Once there are 1,000 messages in the backlog, turn off High-Throughput mode.**
|
55 | 55 |
|
56 |
| -Now that the spike in traffic is over, there is still a large backlog of messages to get through. At a throughput of 4 messages per second, it's going to take 250 seconds (just over 4 minutes) to get through the backlog. That doesn't account for the new messages still being added to the Sales input queue by the ClientUI endpoint. |
| 56 | +Now that the spike in traffic is over, there is still a large backlog of messages to get through. At a throughput of 4 messages per second, clearing the backlog will take about 250 seconds (just over 4 minutes). That doesn't account for the new messages still being added to the Sales input queue by the ClientUI endpoint. |
57 | 57 |
|
58 | 58 | To handle this load of traffic, we are going to scale out the Sales endpoint.
|
59 | 59 |
|
@@ -82,7 +82,7 @@ When an endpoint instance stops sending data, it will be displayed with an error
|
82 | 82 |
|
83 | 83 | 
|
84 | 84 |
|
85 |
| -### Critical time is going up, but so is processing time |
| 85 | +### Critical time is increasing, but so is processing time |
86 | 86 |
|
87 | 87 | Critical time covers the entire lifetime of a message, from when it is first sent to when it has been completely processed. This includes the length of time it takes for the endpoint to process the message, which is already measured by processing time.
|
88 | 88 |
|
|
0 commit comments