5 ms·
Queues are fine, but: 1) Queues should be of finite size (exactly what size is entirely application dependent, but the point is that it's almost never ok to le
by usefulcat 5y ago
Queues are fine, but:
1) Queues should be of finite size (exactly what size is entirely application dependent, but the point is that it's almost never ok to let a queue grow indefinitely).
2) When a queue is full, producers should often be blocked (backpressure).
Obviously it depends a lot on the particular use case, but IME it's usually risky to think that a 'sufficiently large' queue is going to be an acceptable solution.