adapters-zeromq-reqrep

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package adapters-zeromq-reqrep demonstrates the ZeroMQ REQ/REP adapter using go-codex's api/rest route declarations.

The example wires together a Serve (REP server) and Call (REQ client) in-process using a mock FramedSocket to avoid requiring a real libzmq installation. In production, replace pipeSocketPair with the pebbe/zmq4 wrapper shown in docs/guides/zeromq.md.

Pattern: REQ/REP compute service

ComputeReq / ComputeResp codecs  (Layer 1 — domain types)
rest.NewRoute                    (Layer 2 — route contract)
zeromq.Serve                     (Layer 3 — ZMQ REP socket adapter)
zeromq.Call                      (Layer 3 — ZMQ REQ socket adapter)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL