You probably want to investigate async.queue so you can control how many of
those 200 queries you do in parallel.


On Tue, Feb 25, 2014 at 10:06 PM, Alex Kocharin <[email protected]> wrote:

>
> Since node.js is non-blocking, it will still be running in those 30
> seconds. Of course it won't magically move to the next record (unless you
> tell it to), but it can easily play a music or brew a coffee while you're
> waiting.
>
> If you want more precise answer, you can show the code you're trying to
> run.
>
>
> 26.02.2014, 04:02, "Bob Spero" <[email protected]>:
>
> Before I even begin my project I want to make sure nodejs is the language
> to use for this. I want to open up a record set with about 200 ip addresses
> and using node-snmpjs collect the sys uptime and store the results into a
> database. The snmp module is set to 30 seconds for a timeout. lets say I
> hit a bad IP and I have to wait the 30 seconds to get the results. What
> will nodejs do at that point? Will it move to the next record or wait the
> 30 seconds till proceeding?
>
>
>
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to