[erlang-questions] Erlang suitability

Garrett Smith g@REDACTED
Fri May 18 18:24:37 CEST 2012


On Fri, May 18, 2012 at 11:17 AM,  <ok@REDACTED> wrote:
>
>> On Fri, May 18, 2012 at 4:00 AM, Ovid <curtis_ovid_poe@REDACTED> wrote:
>>> Use case 2: we periodically need to reauthenticate to the auction
>>> system.

-snip-

> How *often* is "periodically?
> What would happen if each of your boxes just chose times at random?
> If you have to re-authenticate once an hour, each box could be given
> two 24-second windows to use (time division multiplexing, as it were).
> You can probably keep the clocks sufficiently synchronised to make that
> work.
>
> Could you use a scheme where each node holds a token and uses
> gproc:give_away/2 to pass it to the next node?

Hah! I forgot about gproc's leader election features.

I know that was "in process" for a while -- can anyone share recent
experience with it?

Garrett



More information about the erlang-questions mailing list