Forum Post: RE: Possible to consume all messages off of a sonicmq queue in one go?

  • Thread starter paul.radbone@wins.co.uk
  • Start date
Status
Not open for further replies.
P

paul.radbone@wins.co.uk

Guest
I just need a simple solution for a rest service. Maybe if I explain what I want from the REST clients point of view, it will be clearer to see what I'm trying to achieve? The REST client is going to poll the REST service every 200ms (for example) to see if any responses are waiting for it. I want to read all waiting messages off of a sonic queue and return them back to the client. I dont want to block the client (So I can't have a wait for on the appserver) as we will have 200+ clients connected and polling at any one time. Now at the moment I have a REST client set to poll the REST service every 50ms as the appserver code (as in my original post) is only returning one message at a time - even when there are 10 messages on the queue.

Continue reading...
 
Status
Not open for further replies.
Top