Giter Site home page Giter Site logo

cqs's People

Contributors

cronopio avatar fb55 avatar indexzero avatar jcrugzz avatar jhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cqs's Issues

Create messages in batches if they come in quickly

For example, set a threshold, 100ms and batch all messages that need to be created into one _bulk_docs update, and send that 100ms later.

Bonus points for still using the PUT method if there is only one message, so the CouchDB logs look nice.

Changes API

Is there a simple way to detect message additions or do I have to write my own changes filter and use couch dbs change notifications?

Cannot receive multiple messages

I am trying to pull multiple items from a queue, but i only ever receive one item...

my code:
cqs.ReceiveMessage('queue_name', 3, function(er, messages) {
console.log(messages);
});

always shows one item, no matter how long I leave it, or how many items are in the queue (1, 2 or 3).

Is this a bug or am I misunderstanding something?

problem sending messages

I create a queue and all looks good. Here is the design doc source: https://gist.github.com/1211432

When sending a message I get a 500 response status from couchdb.
In introduced some debugging at the request level and found that the error was {"error":"case_clause","reason":"{[{<<\"message\">>,<<\"/^CQS\\//.test is not a function\">>}

which comes from the validate_doc_update on the design doc, line 17:

...
if(! /^CQS//.test(newDoc._id)) // A simple test, hopefully future-proof
...

BTW, I'm using cqs 0.3.0, node 0.4.10 and couchdn 1.1.0.

Thanks.

Error calling ListQueues

Hi,

I get the following error/stacktrace when trying to call ListQueues:

Error: Invalid protocol
    at [object Object].request (/path/to/my/app/node_modules/cqs/node_modules/request/main.js:194:34)
    at request (/path/to/my/app/node_modules/cqs/node_modules/request/main.js:332:5)
    at Object.req_json (/path/to/my/app/node_modules/cqs/lib.js:68:10)
    at Object.list_queues (/path/to/my/app/node_modules/cqs/queue.js:296:7)
    at Object.default_wrapper [as ListQueues] (/path/to/my/app/node_modules/cqs/api.js:38:22)

This is after I call cqs.defaults() with an argument like the following:

{ couch: 'http://username:password@localhost:5984', db: 'cqs-development' }

(Assume that I used my local admin account for the defaults couch string...)

Anyways, I'm excited to continue trying out CQS, and if you could help me figure this out I'd really appreciate it! So, please let me know any other details I can provide to help.

Cheers,
Zach

P.S. I'm on node.js v0.4.8 and CQS v0.3.0.

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.