Ladder is a lightning fast persistent queue written in Java.
// TODO publish to Maven Central
String path = "/path/to/your/queue/dir";
Queue queue = new LadderQueue(
new File(path),
LadderQueueOptions.builder()
.dataFlushThreshold(512 * 1024)
.maxFileSize(100 * 1024)
.build()
);
byte[] data = new byte[] {...};
queue.put(data);
byte[] read = queue.take();
long timeoutInMs = 500;
byte[] read = queue.poll(timeoutInMs);