Closed rishflab closed 5 years ago
We need an exclusive heartbeat functionality which guarantees no new sync request initiated until previous one finishes, even heartbeat interval has passed since previous sync started. That would guarantee we will not overload a node with many concurrent syncs.
@Maxime2 yes, the sync request dispatch needs to be in an actor, in a loop with a configurable delay after each dispatch.
Implemented an actor that emits a heartbeat periodically. This periodic heartbeat functionality can be used to send sync requests to other nodes.
This commit demonstrates: