riemannx v4.1.4 Riemannx.Connections.Batch.Queue View Source
Queue implementation for the batch module
Internally it maintains two queues:
- buffer: Contains the latest elements being inserted before the size of a batch is reached
- batches: It has the ordered list of batches ready to be sent as required
The main idea is that batches are created as the queue is filled up. In this way, it avoids problems if the amount of events to be sent is too big as everything is precalculated on a smaller queue (buffer)