Code Monkey home page Code Monkey logo

common-mq's People

Contributors

johnworkaccount avatar lloydcotten avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

common-mq's Issues

Fix SQS provider error when queue already exists

Calling the AWS.SQS.createQueue will work and return the QueueUrl if it exists AND matches all the attributes. But if the queue attributes change, or options change, it returns an error and won't start. This is not necessary, as we can still use a queue with different attributes if use AWS.SQS.getQueueUrl method instead. We should try the getQueueUrl first and if that fails, call the createQueue method.

Add integration tests

  • Add integration tests
  • Update README to add information about unit tests vs integration tests and dependencies required

Release version 0.3.0

Before breaking support for Node.js v0.10.x (in common-mq v1.0.0), we want to release another version with updated tests and cleaned up examples, API, docs, and latest supported dependencies.

  • Update deps to latest version supported by Node.js v0.10.x
  • Update package.json version attribute
  • Publish to npm

Add linting

  • Implement eslint
  • Correct lint errors / warnings

Update examples

Need to cleanup the examples and add working examples for all three providers. Need to:

  • Rename examples/common.js to reflect actual content (SQS example)
  • Ensure zeromq example is working and fix as necessary
  • Add an amqp example
  • Add examples to .npmignore

Replace amqp dependency

node-amqp turns out to be no longer very well recommended by amqp / node.js community. amqp.node is a better option. We should swap out this dependency.

Add base class for providers

Providers should inherit from a base class. This should address the issue that some providers do not have an ack() method.

Update README

  • Should list only supported providers
  • Fix zeromq reference
  • Need to add provider specific option documentation
  • Review and update API as needed
  • Fix code blocks to use backticks and language specs where possible

Caching queue connection

mq.connect(...). Is this caching the connection for subsequent messages? Looking in a use case where messages are going to different queues based on message content and similar message types should not connect again and use the existing connection (somehow).

Expanding queue provider support

It would be nice to support as many queue providers as possible. Please comment below if you would like to see common-mq support a particular currently unsupported provider.

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.