elixir phoenix reminder functionality
<p>I am playing around with elixir and phoenix and tried to implement reminders functionality, i.e. todo with future datetime, which should alert you at that datetime. </p>

<p>I have the following naive solutions in mind: </p>

<p>1) use simple one for one strategy and for each reminder create a process, which would use timeout and die after completion</p>

<p>2) aggregate all reminders in a single process, store reminders in state, check datetime every few seconds and remove after alerting.</p>

<p>Could someone elaborate on each solution and may be give a more sensible one, thanks</p>