The dispatcher publishes redis cluster commands to be performed, and waits for them to be completed. The
dispatcher subscribes to events on the message bus indicating when an operation has completed successfully or
unsuccessfully. The dispatcher is completely decoupled from the actor hierarchy performing Redis cluster operations.
The dispatcher can process a Redis command one at a time. When processing a Redis command, it uses become to
change its state to running. When the dispatcher is running it will no longer accept other Redis cluster commands
to publish. When it receives a success message on the message bus, the dispatcher will change its state back to
accepting, and it will message the client ActorRef of the success.
The dispatcher publishes redis cluster commands to be performed, and waits for them to be completed. The dispatcher subscribes to events on the message bus indicating when an operation has completed successfully or unsuccessfully. The dispatcher is completely decoupled from the actor hierarchy performing Redis cluster operations. The dispatcher can process a Redis command one at a time. When processing a Redis command, it uses
become
to change its state torunning
. When the dispatcher is running it will no longer accept other Redis cluster commands to publish. When it receives a success message on the message bus, the dispatcher will change its state back toaccepting
, and it will message the client ActorRef of the success.