This table shows how processing time scales as we increase the number of consumer workers.
Each worker processes messages with a simulated delay of 100ms per message.
| Workers | Messages | Delay (ms) | Duration |
|---|---|---|---|
| 5 | 1000 | 100 | 20.234953s |
| 10 | 1000 | 100 | 10.114531s |
| 20 | 1000 | 100 | 5.060038208s |
| 40 | 1000 | 100 | 2.539948333s |
| 80 | 1000 | 100 | 1.315284208s |
| 160 | 1000 | 100 | 713.914791ms |
| 320 | 1000 | 100 | 413.064875ms |
| 640 | 1000 | 100 | 220.453167ms |
Observation: Scaling workers has a huge impact on throughput