[erlang-questions] Using processes to implement business logic
Fri Jan 30 14:16:24 CET 2015
gen_server also has the timeout mechanism.
I am not against using TTL for my processes, I just don’t know if this is the right choice for my particular problem. I would say intuitively that it is too fine grained to keep a specific timeout for each business entity in existence, when they are modelled after processes.
On 30 Jan 2015, at 12:58, Imants Cekusins <imantc@REDACTED> wrote:
> Did you consider gen_fsm?
> gen_fsm lets you maintain the current state (both stage of the state
> machine and the state data).
> It simplifies garbage collection: it is possible to set timeouts for
> each specific stage
> Info about which particular stage times out is available. The code can
> then act accordingly.
More information about the erlang-questions