Skip to content

zhwei820/sourcecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ in Action Examples

Requirements

Python Examples

  • Python 2.6 or newer
  • Pika

PHP Examples

Running the Examples: Python

3.2.2 Alerting Framework

Requirements:

  • RabbitMQ server (2.0 or later) running on localhost.
  • RabbitMQ user needed:
    • Username: alert_user
    • Password: alertme
    • Permissions: read,write,config

Running the Consumer: python 3.2.2_alert_consumer.py

Running the Producer: python 3.2.2_alert_producer.py -r ROUTING_KEY -m MESSAGE

3.3.3 RPC Example

Requirements:

  • RabbitMQ server (2.0 or later) running on localhost.
  • RabbitMQ user needed:
    • Username: rpc_user
    • Password: rpcme
    • Permissions: read,write,config

Running the Server: python 3.3.3_rpc_server.py Running the Client: python 3.3.3_rpc_server.py

Running the Examples: PHP

  • RabbitMQ server (2.0 or later) running on localhost.
  • RabbitMQ user needed:
    • Username: guest
    • Password: guest

To run the PHP scripts simply do:

	php script_name.php

About

Examples and source code from the book RabbitMQ in Action.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 59.6%
  • C# 15.2%
  • PHP 12.4%
  • Java 6.3%
  • Erlang 4.6%
  • Ruby 1.8%
  • Makefile 0.1%