[erlang-questions] clarify: order of messages

KatolaZ <>
Sun Nov 18 20:05:32 CET 2007


On Sun, Nov 18, 2007 at 10:55:35AM -0800, Zvi wrote:
> 
> Same processes on the same node?
> Will be this a case when processes are on different nodes?
> 

If the same process (only one) sends two messages one after the other
(Msg1 and Ms2, respectively) to another process, then those two
messages are going to be received in the same order as they have been
sent, i.e. Msg1 first and then Msg2. And this does not depend on the
fact that the two processes are running on different nodes (since I'm
quite sure that message passing among remote nodes is handled using
TCP sockets, so the *order* of transmission should be preserved...)

Or, at least, I hope it works so ;-)

HND

Enzo

-- 
[ Enzo Nicosia aka KatolaZ --- GLUG Catania -- Freaknet Medialab ]
[ me [at] katolaz.homeunix.net -- http://katolaz.homeunix.net -- ]
[ GNU/Linux User:#325780/ICQ UIN: #258332181/GPG key ID 0B5F062F ]
[ Fingerprint: 8E59 D6AA 445E FDB4 A153 3D5A 5F20 B3AE 0B5F 062F ]



More information about the erlang-questions mailing list