falso-amqp
Falso AMQP
Last updated 4 months ago by lcnvdl .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install falso-amqp -g
SYNC missed versions from official npm registry.

falso-amqp

Falso AMQP - Node.js amqp-like server & client library

NPM Version Build Status codecov Known Vulnerabilities

Falso AMQP is a AMQP-like server for Node.js. It client library is designed to be used exactly like amqplib with rabbitmq.

Support us

  • patreon or
  • ko-fi

History

I was working with microservices in Node JS. The MS nodes were connected using RabbitMQ. My life was happy, until I've tried to deploy my project to azure. That was when I realize that the thing is was not so easy.

In order to use AMQP on Azure, I had two options:

  1. Set up a virtual machine, and a Rabbit MQ server inside.
  2. Use the AMQP service, provided by azure (you really have to control your messages exchange, otherwise it will be very expensive).

I just wanted a simpler think: deploy my microservices into an "app service" resource. Just that!

So, I decided to implement a AMQP-Like NodeJS Server and Client (library).

Getting started

You have two ways to implement the server.

Server (outside your project)

  1. Install falso-amqp globally
npm i falso-amqp -g
  1. Run it falso-amqp

Server (inside your project)

  1. Install falso-amqp
npm i falso-amqp --save
  1. Require
const runServer = require("falso-amqp");
 
runServer();

Client Library

npm i falso-amqp-client --save

Falso AMQP Client

The objetive of the Client library is to be compatible with Rabbit MQ.

Compatibility

Features based on amqplib channel api

Function Status
connect OK
ChannelModel and CallbackModel
connection.close OK
events
connection.createChannel OK
connection.createConfirmChannel
Channel
channel.close
events
channel.assertQueue OK
channel.checkQueue
channel.deleteQueue
channel.purgeQueue
channel.bindQueue OK
channel.unbindQueue
channel.assertExchange OK
channel.checkExchange
channel.deleteExchange
channel.bindExchange
channel.unbindExchange
channel.publish OK
channel.sendToQueue OK
channel.consume OK
channel.cancel
channel.get
channel.ack In progress
channel.ackAll
channel.nack In progress
channel.nackAll
channel.reject
channel.prefetch In progress
channel.recover
ConfirmChannel
confirmChannel.publish
confirmChannel.sendToQueue
confirmChannel.waitForConfirms

Current Tags

  • 0.0.10                                ...           latest (4 months ago)

10 Versions

  • 0.0.10                                ...           4 months ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |