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)
Click to show internal directories.
Click to hide internal directories.