Big Queue - A big, fast and persistent queue based on memory mapped file.
A big, fast and persistent queue based on memory mapped file.
Features include:
Features include:
- Fast: close to the speed of direct memory access, both enqueue and dequeue are close to O(1) memory access.
- Big: the total size of the queue is only limited by the available disk space.
- Persistent: all data in the queue is persisted on disk, and is crash resistant.
- Reliable: OS will be responsible to presist the produced messages even your process crashes.
- Realtime: messages produced by producer threads will be immediately visible to consumer threads.
- Memory-efficient: automatic paging & swapping algorithm, only most-recently accessed data is kept in memory.
- Thread-safe: multiple threads can concurrently enqueue and dequeue without data corruption.
- Simple&Light-weight: current number of source files is 12 and the library jar is less than 30K.
http://bulldog2011.github.com/bigqueue
License:
Tech:
Tags: