Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Supervision을 통한 장애처리

Child 액트가 액터가 장애발생시, 디양한 복구전략( 3초간 30초동안시도)을 통해 Child액트의 Child액터의 복구가 가능하다. 

Code Block
languagec#
themeEmacs
linenumberstrue
var supervisor = BackoffSupervisor.Props(
                    Backoff.OnFailure(
                        childProps,
                        childName: "supervised-actor",
                        minBackoff: TimeSpan.FromSeconds(3),
                        maxBackoff: TimeSpan.FromSeconds(30),
                        randomFactor: 0.2)
                    );

...