Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Publishing
* graceful restart - ok as is. Commit finishes when last event gets published.
* kill - ok as is. Causes
ord
to revert to previous savepoint which takes a long time to repair when starting up, but once it's up it re-emits the blocks that were not committed so not event loss.* rmq failed ack - we retry to create a new connection, if not successful we gracefully shutdown the app and have event loss.
* rmq connection killed - we retry to create a new connection, if not successful we gracefully shutdown the app and have event loss.
* rmq down - we retry to create a new connection, if not successful we gracefully shutdown the app and have event loss.
This should cover most of the cases where we have infra issues.
Reindexing from scratch on the light version takes ~8 hours so we want to avoid it and worst case when rmq goes down we need to spin up a new instance and reindex til the failure.
Consumers