Created
October 23, 2012 18:22
-
-
Save terrancesnyder/3940519 to your computer and use it in GitHub Desktop.
Example for publishing infrastructure with nodejs + zmq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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