Are Erlang/OTP messages reliable? Can messages be duplicated?

前端 未结 3 1409
-上瘾入骨i
-上瘾入骨i 2021-01-30 00:57

Long version:

I\'m new to erlang, and considering using it for a scalable architecture. I\'ve found many proponents of the platform touting its reliabi

3条回答
  •  野的像风
    2021-01-30 01:52

    I think answer has nothing to do with Erlang at all. It lies in semantics of Client-Server interaction where you can chose to implement "at least once", "at most once" or "exactly once" guarantees into your client-server protocol. All of these invocation semantics can be implemented by combining unique tags, retries and logging client requests on both client and server before sending or executing it so that it can be picked up by server after crash. Besides duplicates you can get lost, orphaned or delayed messages.

提交回复
热议问题