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.
Whenshould I use
:build_embeddedkey on my
mix.exs? Wouldn’t make sense to be always embedded for any project once it goes into production? When I use
mix newit doesn’t include this either just module or
- Why start permanent when I dont have any supervisor or something like that?
Do I need
:start_permanentif I am
notcreating 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?!