Take the 2-minute tour ×  I have a cluster of 20 servers. I want
them to send 200 emails (for example). Now each node decides in
its own based on some rules to send an email. HOw can I make
them altogether not to send more thank 200 emails? And still be
highly scalable and accurate with high performance (so will also
work for 200G emails with 200 nodes... Just for example.  If I
have a shared memory with a counter won't that be a contention
point? If I use actors and messaging I might get huge mistakes
in number of ״s Emails" send.  In other words how does a global
cluster wide counter which is read and updated by any node in
cluster ++ or -- goes along with no synchronization and
contention - with actor / asynchronous / messaging patterns?
share|improve this question  1 Answer 1  up vote 0 down vote
accepted  How fast are you going to send those e-mails? What
throughput are you looking at? Just a simple counter shared by
200 nodes doesn't sound too horrible. Is this a real bottleneck
you are talking about o