Skip to content

Add NATS JetStream and Kafka EventStore providers - #27

Merged
Raezil merged 7 commits into
mainfrom
feat/issue-22-nats-kafka-providers
Oct 5, 2026
Merged

Raezil merged 7 commits into
mainfrom
feat/issue-22-nats-kafka-providers

Conversation

@Raezil

@Raezil Raezil commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Implements the first priority slice of #22.

Added

  • WithNATSJetStream(...) / NATSJetStreamProvider
    • EventStore-first lazy construction
    • projection → subject mapping
    • durable consumers
    • queue groups
    • explicit ACK after successful handling
    • NAK on decode/handler failure
    • custom EventCodec
    • graceful provider shutdown without closing the injected NATS connection
  • WithKafka(...) / KafkaProvider
    • EventStore-first lazy construction
    • topic publishing
    • consumer groups
    • optional fixed partition mode
    • projection-keyed hashing for partition-aware ordering
    • synchronous offset commit only after successful handling
    • custom EventCodec
    • graceful reader/writer shutdown
  • configuration and projection-validation tests
  • README examples and delivery/ownership semantics

This intentionally lands the issue's two priority transports first rather than ten broker clients in one unreviewable patch. Remaining providers in #22 can reuse the same EventStoreOption model.

Local go test could not be run in this execution environment because outbound module/GitHub DNS is blocked; CI is the compile/test gate.

Part of #22.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
goeventbus Ready Ready Preview Oct 5, 2026 5:51pm UTC

@Raezil Raezil changed the title Feat/issue 22 nats kafka providers Add NATS JetStream and Kafka EventStore providers Oct 5, 2026
@Raezil
Raezil merged commit beae929 into main Oct 5, 2026
4 of 5 checks passed

This branch was successfully deployed

1 active deployment
Preview — bcba36ea Deployed Oct 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant