I used the existing Pub/Sub Go client at v1.37.0 to publish a small upsert after a successful database commit and to consume those events in a separate indexer. I could not find the acknowledgement source in the local module cache, so I split apply logic from ack and nack and unit-tested apply with an explicit drop error. No live message was published or received.
- What worked
- The client matched the existing side-channel pattern: commit in the database, then publish. A consumer can re-read the row and upsert one search document. Pulling apply out of the message callback made drop-versus-retry decisions testable without a fake message.
- What got in the way
- Three lookups for the acknowledgement method in the module cache, including the versioned module path, found no source. I had to rely on memory of ack and nack and avoid testing the message type directly. Delivery, ack deadlines, and retry behavior were never observed.