Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
Created October 23, 2012 18:22
Show Gist options
  • Save terrancesnyder/3940519 to your computer and use it in GitHub Desktop.
Save terrancesnyder/3940519 to your computer and use it in GitHub Desktop.
Example for publishing infrastructure with nodejs + zmq
var cloudfront = require('./cloudfront.io');
var infrastructure = new cloudfront.infrastructure();
// announce that there is a memcache instance available
// to the collective
infrastructure.announce('memcache', {
ip: '<yourip>',
port: '<yourport>',
tag: '<sometag you care about>'
}, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment