1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ElasticQ MPSC Queue: Throughput vs Producer Count
================================================
Throughput (K msg/sec)
500K ┤
│
450K ┤ ●●●
│ ● ●
400K ┤ ● ●
│ ● ●
350K ┤ ● ●●●
│ ● ●
300K ┤ ● ●●
│ ● ●●
250K ┤ ● ●●●
│ ●
200K ┤ ●●●●
│ ●
150K ┤
│ ●
100K ┤
│
50K ┤
│
0 └┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬────
1 3 5 7 9 11 13 15 17 19 21
Producer Count
Key Performance Zones:
┌─────────────────┬──────────────┬─────────────────┬─────────────────┐
│ Producers │ Zone │ Throughput │ Success Rate │
├─────────────────┼──────────────┼─────────────────┼─────────────────┤
│ 1-4 │ Linear Scale │ 68K - 260K │ 100.0% │
│ 5-9 │ Peak Zone │ 319K - 479K │ 99.9% - 100% │
│ 10-16 │ Plateau │ 285K - 471K │ 97.2% - 99.9% │
│ 17-20 │ Decline │ 205K - 259K │ 94.9% - 96.8% │
└─────────────────┴──────────────┴─────────────────┴─────────────────┘
Performance Characteristics:
• Peak at 9 producers: 479,298 msg/sec
• 3x scalability factor (1 → 20 producers)
• Excellent reliability: 19/20 configs >95% success
• Memory efficient: 256KB peak capacity under load
Recommendations:
✅ 1-8 Producers: Production ready, optimal performance
⚠️ 9-16 Producers: Good performance, monitor message loss
🔄 17+ Producers: Consider queue sharding for higher loads