3 ms·
I'm curious if Erlang system here means just the nodes running on a single machine, or the Erlang system meaning the system of nodes clustered across multiple h
by angersock 12y ago
I'm curious if Erlang system here means just the nodes running on a single machine, or the Erlang system meaning the system of nodes clustered across multiple hosts.
Is time as transparent as the RPC model, is I guess what I'm asking.
- jacquesm 12y agoIt could even be a single node, rather than all the nodes on a single machine.
- jlouis 12y agoTime here is on a per-node basis. No effort is made to synchronize time over multiple nodes. Partially because the problem is better solved with NTP, partially because time synchronization is so application-specific you don't want to solve it generically. Some problems can do away with pretty lax sync, which in turn yields faster execution due to more asynchronicity. Other problems requires global time keeping, or timestamps of the form {erlang:monotonic_time(), node()} where the node-name is part of the timestamp (tuple ordering is lexicographic). There are already several solutions to the global time problem. Twitter does something in Finagle, and earlier it was snowflake.