Martin, thanks for the detailed explanation. Now, it's clear to me.
I see the light ;-) you are queuing the PAYLOAD, not the POST request, the
request object and transfer that it was born with the post.
Now I understand the situation (I hope ;-) I see three main use cases:
a- you need to queue t
There are a couple ways to do this, for example:
POST request with payload -> Machine A
within request, machine A takes the payload and adds a message with it to
the queue,
then returns with some status message, perhaps containing a reference to
the task entry.
Machine B, upon pulling the message
Thanks! Hmm... interesting... but I missed some part, Martin. If I
understand your idea, the consumer(s) of the queue is in another machine.
That's is Ok, it compiles in my neuron ;-) My problem is about "POST
request".
The initial POST request reach Machine A, from Client 1. At the end, it's a
so
Here are some docs, just a piece of advice - this can easily result in
overkill, only use when it is really necessary:
http://www.soapatterns.org/synchronous_response_deferred_processing.php
http://martinfowler.com/bliki/CQRS.html
Also, it might be feasible to check out iron.io - iron worker prod
Just curious...
Why you need to queue the POST request?
An in-memory queue is enough? Or you need to process the POST request in
another process? (I can't imagine why/how)
On Sat, Jul 7, 2012 at 5:04 PM, Alan Hoffmeister
wrote:
> The major problem is the logic, I had mastered amqp already.
>
The major problem is the logic, I had mastered amqp already.
Em Jul 7, 2012, às 4:55 PM, Martin Wawrusch escreveu:
> No docs that I know of, but take a look at the amqp npm module, it works fine
> with RabbitMQ (at least it used to a year back when I worked with it).
>
> Other then that it is
No docs that I know of, but take a look at the amqp npm module, it works
fine with RabbitMQ (at least it used to a year back when I worked with it).
Other then that it is simply a matter of defining a message format, pushing
that onto the queue, and have some separate process(es) working the queue
Hello fellows,
I want to queue my POST requests, someone known a link where I can read more
about requests, Node.js and queue manager (my preference is RabbitMQ).
Thanks!
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guideli