Giter Site home page Giter Site logo

liyazhou / sourcecode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rabbitinaction/sourcecode

0.0 2.0 0.0 598 KB

Examples and source code from the book RabbitMQ in Action.

Home Page: http://rabbitmqinaction.com

License: Other

C# 15.21% Makefile 0.12% Erlang 4.62% Java 6.33% PHP 12.35% Python 59.55% Ruby 1.82%

sourcecode's Introduction

RabbitMQ in Action Examples

Requirements

Python Examples

  • Python 2.6 or newer
  • Pika

PHP Examples

Ruby Examples

Running the Examples: Python

3.2.2 Alerting Framework

Requirements:

  • RabbitMQ server (2.6.1 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.6.1 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.6.1 or later) running on localhost.
  • RabbitMQ user needed:
    • Username: guest
    • Password: guest

To run the PHP scripts simply do:

	php script_name.php

Running the Examples: Ruby

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

To run examples do

ruby chapter-1/hello_world_consumer.rb

and so on. Or, if you use Bundler

bundle exec ruby chapter-1/hello_world_consumer.rb

Note to contributors

BY CONTRIBUTING TO THE RABBITMQ IN ACTION SOURCE CODE REPOSITORY YOU AGREE TO LICENSE YOUR CONTRIBUTION UNDER THE TERMS OF THE BSD LICENSE AS SPECIFIED IN THE 'LICENSE.md' FILE IN THIS DIRECTORY.

sourcecode's People

Contributors

williamsjj avatar videlalvaro avatar michaelklishin avatar sleeptillseven avatar james-carr avatar

Watchers

James Cloos avatar LiYazhou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.