Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Design pattern for queue with alot of small data?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gautam  
View profile  
 More options Apr 27 2012, 10:45 am
From: Gautam <gautam.bak...@gmail.com>
Date: Fri, 27 Apr 2012 07:45:29 -0700 (PDT)
Local: Fri, Apr 27 2012 10:45 am
Subject: Design pattern for queue with alot of small data?

Hi Everyone,

I am using rabbitmq as my queue server but my workers are having a slight
problem.  I create a connection then send it to multiple threads who in
turn create their own channels and then have each thread does its own work
on the thread. Its basically a threaded version
of: http://www.rabbitmq.com/tutorials/tutorial-two-java.html

But when I profile my code over half the time is spent
in com.rabbitmq.client.impl.SocketFrameHandler.readFrame() I think it makes
sense(if thats the part that reads the queue) as my work for each worker is
not that much per item(there's just alot of items).

Is there something I can do to make this part faster?  Right now, I set the
awk to 200  and thread the awk part of the code.  Is there something that
would allow me to download data in bulk? or anything else that could make
it go faster(it seems like my program can finish the work quicker than the
application can send it one a time)?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »