Installation
varmq needs Go 1.24 or newer. Add it to your module with go get, then import it. Pick the variant you need:
Three install variants as tabs: varmq alone, varmq with the Redis adapter redisq, and varmq with the SQLite adapter sqliteq. Each tab shows the go get command and the import, and each has a copy button.
The in-memory worker pool, queues and topics.
go get github.com/goptics/varmqimport "github.com/goptics/varmq"Adds redisq, for persistent and distributed queues in Redis.
go get github.com/goptics/varmq github.com/goptics/redisqimport (
"github.com/goptics/redisq"
"github.com/goptics/varmq"
)Adds sqliteq, for persistent queues in SQLite files.
go get github.com/goptics/varmq github.com/goptics/sqliteqimport (
"github.com/goptics/sqliteq"
"github.com/goptics/varmq"
)varmq needs Go 1.24 or newer. Run go version to check.
The in-memory worker pool, queues and topics are all in this one package. Persistent and distributed queues also need a storage adapter, which is its own module: redisq for Redis or sqliteq for SQLite.
Next: the quick start.
VarMQ is MIT licensed. Benchmark figures come from github.com/goptics/benchmarks.