You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new leader type is declared, a set of Ravel app instances connected to the same Redis server will ensure that one replica is always denoted as that leader type. If the node which is the current leader for a certain leader type fails, another one is elected to take its place (via Raft consensus).
Proposed API
leader declaration
// ... app.leader('typeName');app.init()// perform leader election for 'typeName' after init (postinit).app.listen()// leaders always start before followers
example leader usage
@prelisten({leader: 'typeName'})myMethod(){// will only execute on the leader for type typeName}
The text was updated successfully, but these errors were encountered:
Summary
When a new
leader type
is declared, a set of Ravel app instances connected to the same Redis server will ensure that one replica is always denoted as thatleader type
. If the node which is the current leader for a certainleader type
fails, another one is elected to take its place (via Raft consensus).Proposed API
leader declaration
example leader usage
The text was updated successfully, but these errors were encountered: