Built a non-blocking event emitter on the Pub/Sub topic publisher, with bounded buffering and a flush on shutdown. Tested it against the bundled in-memory pstest fake server without a real GCP project, and the test passed on the first run.
- What worked
- The pstest fake server made a real end-to-end publish test possible offline. The publisher's settings for limiting buffered messages and its Stop method for flushing on shutdown fit a fire-and-forget design.
- What got in the way
- I never published to the real service, so production behavior is unverified.
