[erlang-questions] Does erlang:now() guarantee that subsequent calls to this BIF returns continuously increasing values even in erlang cluster?
Sergej Jurečko
sergej.jurecko@REDACTED
Mon Apr 20 08:44:33 CEST 2015
It does not guarantee unique values in cluster.
Sergej
On Apr 20, 2015 8:42 AM, "Daniel" <liudanking@REDACTED> wrote:
> Hi, dear list,
>
> I am looking for a global sequence generator in erlang cluster.
>
> I think erlang:now() is promising, because it is fast enough and “also
> guarantees that subsequent calls to this BIF returns continuously
> increasing values”. But I am not quite sure whether this guarantee also
> works for erlang cluster which have several nodes running on different
> servers?
>
> I have read Time and time correction in Erlang (
> http://www.erlang.org/doc/apps/erts/time_correction.html), but still have
> no conclusion.
>
> Daniel Liu
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150420/f8745179/attachment.htm>
More information about the erlang-questions
mailing list