[erlang-questions] Using processes to implement business logic

Camille Troillard lists@REDACTED
Fri Jan 30 11:52:27 CET 2015


I am looking for opinions about using processes to encapsulate the state of business entities.

It looks like, in the context of our problem, we should have more advantages implementing our domain model using processes rather than simple Erlang records. It also appears that processes will act as a nice cache layer in front of the persistent storage.

So, what are your experiences?

Now another question... given this “actor” based approach, I am having difficulties to figure out a proper way of dealing with processes lifetime. How would you do this in practice? Manually, or implement simple garbage collection, reference counting, ...?


More information about the erlang-questions mailing list