Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 1.2 KB

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:

  1. register for an account at
  2. get the vmc command line tool
  3. vmc target
  4. vmc login (your user name and passwprd)
  5. cd rabbit-producer
  6. vmc push rabbit-producer --runtime node08 (choose your own name)
  7. Use the default options and bind a rabbitmq service
  8. cd ../rabbit-consumer
  9. vmc push rabbit-consumer --runtime node08 (choose your own name)
  10. 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.