Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Implement NATS retries #327

Merged
merged 3 commits into from
Dec 16, 2020
Merged

Implement NATS retries #327

merged 3 commits into from
Dec 16, 2020

Conversation

ccorley
Copy link

@ccorley ccorley commented Dec 4, 2020

This PR created threads that start up the NATS subscribers. Once started, each NATS subscriber runs in its own thread and that is unaffected by this PR.

The threading on startup of the subscribers allows us to specify the number of retries and the wait time between retries, which makes it easier to start a set of LFH instances as a group and have them all connect to each other. With this configuration, if a subscriber is trying to connect to a LFH instance that is not up yet, it will keep retrying per the settings:

     lfh.connect.messaging.retries=4
     lfh.connect.messaging.retry.interval.seconds=15

until the connection is made or there are no more retries.

@ccorley ccorley marked this pull request as draft December 4, 2020 21:35
@ccorley ccorley marked this pull request as ready for review December 4, 2020 22:30
@ccorley ccorley requested a review from dixonwhitmire December 4, 2020 22:30
@ccorley ccorley merged commit c216428 into master Dec 16, 2020
@ccorley ccorley deleted the nats-retries branch December 16, 2020 14:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant