JOB 04Introduction

Installation

VarMQ needs Go 1.24 or newer. Add it to your module with go get, then import it. Pick the variant you need:

Install · go get

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.

terminal
go get github.com/goptics/varmq

main.go
import "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.

Versions

Each module has its own go.mod, so each one can need a different Go version. The table is for redisq v1.5.0 and sqliteq v0.3.0.

ModuleGo versionOther needs
github.com/goptics/varmq1.24 or newerNone.
github.com/goptics/redisq v1.5.01.26 or newerRedis 6.0 or newer, with Lua scripts allowed.
github.com/goptics/sqliteq v0.3.01.24 or newercgo (CGO_ENABLED=1) and a C compiler, because it uses mattn/go-sqlite3.

Neither adapter lists github.com/goptics/varmq in its go.mod. So an adapter does not set the VarMQ version; your own module does.

Next: the quick start.

Edit page

Last updated:

On this page