The fqueue for golang.
- Fast
- Persistence
- Rolling File
- Support Unix, Windows.
-
Set the GOPATH
-
Install the peony.
$ go get github.com/joinhack/fqueue
Before create a queue.
fqueue.FileLimit: set the file size
fqueue.DefaultDumpFlag: set the meta data dump strategy.
0 dump meta immediately, this is the default value
1 dump meta per second.
$ go test -bench="." -benchtime=0s
BenchmarkPush 1000000 743 ns/op 158.78 MB/s
BenchmarkPop 1000000 591 ns/op 199.61 MB/s