api: embed a NATS server with JetStream and the pipeline's streams #27
No reviewers
Labels
No labels
accessibility
bug
dependencies
documentation
duplicate
enhancement
go
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/sniffarr!27
Loading…
Reference in a new issue
No description provided.
Delete branch "nats-server"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The API embeds a NATS server with JetStream and creates the pipeline's streams; nothing publishes or consumes them yet. sniffarr-qcj.1.
Stacked on #26: until it merges, this diff includes the feed removal.
The API's in-process user gets a random password per start and is allowed in-process connections only, rather than NoAuthUser, which would hand its unrestricted account to any network client without credentials. Workers connect as
workerand must usenats.CustomInboxPrefix("_INBOX_worker"): it is the only inbox they may subscribe under, and with the default one their JetStream calls time out.Left to later deliveries: payload types, AckWait and MaxDeliver (NATS defaults now), the worker password in the chart for ui, sniff and fetch, and the sightings stream's DiscardNew and MaxMsgs (sniffarr-qcj.6, sniffarr-qcj.7).
5e43bb0de5ef1ee0f01bef1ee0f01bc0227124b3c0227124b39f46ce6d98