GithubHelp home page GithubHelp logo

amqp09.tutorial's Introduction

amqp09.tutorial

Same examples from RabbitMQ, but tested with Apache qpid-j broker.

A set of little modified samples from RabbitMQ tutorial checked with Apache QPID-J broker.

Before you start

Qpid-J

First you need to install and run Apache Qpid-J broker either from site or from git repository. Then you need do some configuration tasks. Unfortunately amqp 0-9-1 does not support any of SASL auth mechainsms but PLAIN. By default PLAIN mechaism is not configured in Qpid-J. So you need to find "authenticationproviders" section and add

"secureOnlyMechanisms" : []

to all provider(s) you plan to use with AMQP protocol listener.

In fact I think this code will work with any MQ broker that support AMQP-0.9 (e.g. RabbitMQ) too.

Preparation

To run the tutorial code first you need to install all neccessary libraries. Just type

npm install

and then you can run any scripts by typing (in bash)

./send.js

or (both in bash and windows console)

node ./send.js

Tutorials

A "Hello World" example, with one script sending a message to a queue, and another receiving messages from the same queue.

More sophisticated example. Multiple worker process will share the tasks among them. Mocking the long-time tasks executions.

Using MQ broker as a broadcast mechanism.

Using MQ broker as a router (somecast).

Extend previous tutorial to using wildcards.

Remote procedure call pattern with MQ broker

Notes

I slightly modified original RabbitMQ tutorial code.

amqp09.tutorial's People

Contributors

mvtm-dn avatar

Watchers

James Cloos avatar  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.