Erlang Message Receive Fundamentals

请参考 http://www.duomark.com/erlang/briefings/euc2006/index.html

Ulf大佬写的,质量有保证!

Conclusions About Erlang Receive

    * Erlang makes it very easy to construct messaging systems
    * Although easy to use, the language does not simplify hard problems
    * Prefer to handle messages in the order received in stateless situations
    * Multiple receive statements can lead to overlooked message patterns
    * Always rely on receive to wait on messages rather than polling
    * Work out a good protocol for your messaging
    * Do not be afraid of using more processes to keep queues pure
    * Sometimes acking of messages is a necessity

写的很好,相信看了后会对消息接收机制有了更深入的理解,改变我们的初级的对消息队列的使用习惯。

你可能感兴趣的:(html,erlang)