This is something that is a little confuse to me and I keep reading on the internet about it but I don’t get it.
-
When
should I use:build_embedded
key on mymix.exs
? Wouldn’t make sense to be always embedded for any project once it goes into production? When I usemix new
it doesn’t include this either just module or--sup
- Why start permanent when I dont have any supervisor or something like that?
-
Do I need
:start_permanent
if I amnot
creating any OTP package (I don’t have any Supervisor)? Like it is just module code like https://github.com/ueberauth/guardian_db
Site note, when I do mix new
I see start_permanent: Mix.env == :prod
even when it is a simple module, but again no clue why wouldn’t I do that. Normally the responsibility to handle crashing is delegated to the higher OTP app right?!