# Supervision options

**URL:** <https://discuss.akka.io/t/supervision-options/1397>\
**Category:** Akka Libraries\
**Created:** [June 26, 2018, 2:07am UTC](https://discuss.akka.io/t/supervision-options/1397 "2018-06-26T02:07:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieru](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@danieru](https://discuss.akka.io/u/danieru)\
**Post date:** [June 26, 2018, 2:07am UTC](https://discuss.akka.io/t/supervision-options/1397/1 "2018-06-26T02:07:09Z")

</div>

For supervision, are these the only 2 options?

1. Modify application.conf and set the akka.actor.guardian-supervisor-strategy value.  
If  
akka.actor.DefaultSupervisorStrategy – (will stop or restart the child actor depending on exception thrown  
akka.actor.StoppingSupervisorStrategy - It will stop the child actor

2. Create a SupervisorActor, and define the strategy in that class. Then create the child actor from the SupervisorActor which will inherit those characteristics.

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/ktoso/32/19_2.png) [@ktoso](https://discuss.akka.io/u/ktoso)\
**Post date:** [June 26, 2018, 3:52am UTC](https://discuss.akka.io/t/supervision-options/1397/2 "2018-06-26T03:52:08Z")

</div>

The first thing you mention is special though – it is the user guardians supercision strategy. Only applies to actors started by the guardian, i.e. any actors that are `/user/hello` named-like. Others like `/user/hello/child` are handled the 2nd way, by their parent.

In general changing the user guardians strategy should not be needed most of the time as you are encouraged to start actors in a deeper hierarchy anyway.

Note that there’s also the Backoff supervision [https://doc.akka.io/docs/akka/current/general/supervision.html#delayed-restarts-with-the-backoffsupervisor-pattern](https://doc.akka.io/docs/akka/current/general/supervision.html#delayed-restarts-with-the-backoffsupervisor-pattern) though it’s a separate mechanism, not the usual supervision one. In Akka Typed Actors this one is included in the “main” supervision mechanisms though, so we’re becoming more aligned there.
