https://dashbit.co/blog/you-may-not-need-redis-with-elixir contains a sentence: “even if you prefer to deliver emails outside of the request, in order to send an earlier response to users, you can spawn an asynchronous worker […]”. Now, is it about something as simple as:
Task.start(
fn ->
Email.important_stuff(user)
|> Mailer.deliver_now!
end
)
or did the author have something else / more sophisticated in mind? What is the typical way of “spawning an asynchronous worker” from within a request-serving process?






















