Repository navigation
Add optional JetStream publishing and a durable pull consumer to the NATS adapter - #612
Conversation
Gemini PR ReviewReviewed commit:
This result blocks merge. Push a fix and comment |
Gemini PR ReviewReviewed commit:
This result blocks merge. Push a fix and comment |
|
/gemini review |
Gemini PR ReviewReviewed commit:
This result blocks merge. Push a fix and comment |
|
/gemini review |
Gemini PR ReviewReviewed commit: Here's an evaluation of the pull request diff:
|
|
/gemini review |
4c61a6e to
480765e
Compare
Gemini PR ReviewReviewed commit: There are no actionable findings. |
Adds opt-in JetStream storage for the NATS bridge's barrier decisions, so a consumer that was offline can catch up.
VerifyBridge.WithJetStreamcreates the stream or checks that an existing one captures the bridge's subject. The default stream coversjoltrin.verify.>; a custom-named stream is scoped to the bridge's own subject.OnPublishError.Flushwaits for pending acks.CheckAndCommitIdempotentsets a message ID from workflow, step and key, so a retry is stored once inside the duplicate window. The step is in the ID so a refused key reuse isn't dropped as a duplicate.SubscribeJetStreamreads decisions through a durable pull consumer with explicit ack,AckWaitandMaxDeliver.WithJetStreamthe bridge behaves as before.Tested against an embedded JetStream server in
bridge_test.go.Thanks,
Gerard Recinto