global:set_lock/1 vs gen_leader & gen_paxos

Joel Reymont joelr1@REDACTED
Tue Sep 1 14:04:24 CEST 2009

Suppose I need a single node (process) in a cluster to write to a file  
on Amazon S3. I don't care which node does it since all I'm doing is  
writing a list of nodes to the file.

I could try to elect a leader with gen_leader or come to consensus  
with gen_paxos. What are the drawbacks of using global:set_lock/1  
instead, though?

	Thanks, Joel

fastest mac firefox!

More information about the erlang-questions mailing list