feat(nats): migrate to JetStream — at-least-once delivery with durable consumer
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m25s
test / unit (pull_request) Successful in 15m53s
test / integration (pull_request) Failing after 16m42s

This commit is contained in:
2026-05-14 16:41:17 +02:00
parent 550865bad4
commit 458feebcdd
4 changed files with 104 additions and 16 deletions

View File

@@ -81,6 +81,9 @@ pub async fn build(
let nats_client = async_nats::connect(nats_url)
.await
.expect("NATS connect failed");
nats::ensure_stream(&nats_client)
.await
.expect("JetStream stream setup failed");
let consumer =
event_transport::EventConsumerAdapter::new(nats::NatsMessageSource::new(nats_client));