# pebbe/zmq4

A Go interface to ZeroMQ version 4

Repository: https://github.com/pebbe/zmq4
Canonical: https://ross.abutalabs.com/products/zmq4
Language: Go
License: BSD-2-Clause
License Family: permissive
Last push: 2025-07-06T13:32:46+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 30, release rhythm 40, longevity 100
- inputs: {"age_days": 4702, "days_push": 423, "days_rel": 488, "gap_med": 24.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1261, forks 172 (observed 2026-08-28T04:04:10.164827+00:00)

## What it is
A Go binding (wrapper via cgo) for the native ZeroMQ version 4 messaging library. It exposes ZeroMQ sockets and patterns such as pubsub, pipeline, and request-reply to Go programs.

## Use cases
- build pubsub messaging in Go
- implement request-reply communication between services
- connect Go programs to ZeroMQ-based distributed systems
- create fanout or pipeline message flows
- use CURVE-secured ZeroMQ sockets from Go

## When to choose
- you need ZeroMQ v4 messaging in Go and can install libzmq with cgo enabled
- you want mature bindings with examples from the ZeroMQ Guide
- you need CURVE security or draft API support

## When to avoid
- you need pure Go without C dependencies or want cross-compilation
- you want a pure-Go ZeroMQ implementation (consider go-zeromq/zmq4)
- you need ZeroMQ version 2 or 3 instead

## Facets
- artifact type: library
- maturity: stable
- function: message-queue, networking, rpc
- domain: microservices, developer-tools
- platform: go, windows, cross-platform
- tags: zeromq, zmq, cgo, pubsub, messaging-library, bindings, messaging, linux, macos

## Member repositories
- pebbe/zmq4 (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:10.164827+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:04:19.985459+00:00, confidence not recorded.
  - readme: https://github.com/pebbe/zmq4 (fetched 2026-08-28T04:04:10.164827+00:00, sha f526aa47b543)
- Data as of 2026-08-30T08:39:29.467469+00:00.
