Closed xirc closed 2 years ago
RaftActor can relatively easily recognize whether the given Replicate message is for internal use or an entity.
RaftActor
Replicate
Changes:
ReplicateForInternal
ReplicateForEntity
Considerations:
Since we have a plan to change Leader's Replicate message handling, this PR is a preparation for future change.
RaftActor
can relatively easily recognize whether the givenReplicate
message is for internal use or an entity.Changes:
Replicate
to sealed traitReplicate
is one of the following:ReplicateForInternal
: Used for internal use (RaftActor
sends this message to itself)ReplicateForEntity
: Used for an entity (An entity sends this message to itsRaftActor
)Considerations:
Replicate
is not a remote message.Since we have a plan to change Leader's
Replicate
message handling, this PR is a preparation for future change.