Open mtmk opened 4 months ago
How much is BoundedChannel
still in the Ordered consumer path?
In general (which is worth noting, since while Ordered consumer is the 'standard', perf is cross-cut), BoundedChannnel
is noticeably worse for reads (has a Lock on parent which also impacts writes) and a tiny bit worse for writes (although, amplified due to the larger shared lock on reads and writes).
We may want to consider trying to find (or writing) a Channel implementation that takes the properties we need from UnboundedChannel (minimal locking and resize-copying) and BoundedChannel (bounded capacity) and provides the best performance/ease.
Ordered consumer performance is our gold standard benchmark for consumers. Test and improve ordered consumer performance. This might inline with planned efforts to improve receive buffer performance.
Prep
Program.cs
Compare to nats bench