[erlang-questions] gen_server: handle_cast/2 vs handle_info/2

Vincent de Phily vincent.dephily@REDACTED
Thu Aug 14 17:15:50 CEST 2008


I've got an app with some gen_servers that use a seemingly random mix of 
handle_cast/2 and handle_info/2, with no visible reason to choose one over 
the other.
It seems to me they both have the exact same functionality, with probably just 
a little more overhead int the handle_cast/2 case.

Is there a real reason to use one over the other (I control the sender too; my 
nodes are not all on the same machine but they're all constantly up and 
chating), or is it just a matter of taste ?
Vincent de Phily

More information about the erlang-questions mailing list