A simple pair of rabbitmq apps meant to run on Cloud Foundry. The producer sends messages to the consumer. And the consumer uses websockets to synchronously display messages to the client.
This is the source code for the UBC CS Alumni lecture: What is this Cloud Thing?
This code comes with two apps, rabbit-producer and rabbit-consumer. These applications each run a simple node server to and communicate using rabbitmq.
To run:
- register for an account at http://cloudfoundry.com
- get the vmc command line tool
- vmc target http://api.cloudfoundry.com
- vmc login (your user name and passwprd)
- cd rabbit-producer
- vmc push rabbit-producer --runtime node08 (choose your own name)
- Use the default options and bind a rabbitmq service
- cd ../rabbit-consumer
- vmc push rabbit-consumer --runtime node08 (choose your own name)
- Use the default options and bind to the same rabbitmq service defined in step 7
You should now have 2 node server running on cloud foundry. You can send messages from the producer to the consumer.