lloydcotten / common-mq Goto Github PK
View Code? Open in Web Editor NEWcommon-mq is an abstracted message queue client package for Node.js with a clean, common API for working with various message queue providers.
License: MIT License
common-mq is an abstracted message queue client package for Node.js with a clean, common API for working with various message queue providers.
License: MIT License
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.
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.
Need to cleanup the examples and add working examples for all three providers. Need to:
examples/common.js
to reflect actual content (SQS example)examples
to .npmignore
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.
Providers should inherit from a base class. This should address the issue that some providers do not have an ack()
method.
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).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.