[Ndn-interest] [EXT] Send multiple Interests in parallel

Junxiao Shi shijunxiao at email.arizona.edu
Tue Mar 9 08:46:29 PST 2021


Hi NAVES

My article *Getting Started with NDNts in Node.js *has an example on
sending many Interests in parallel.
https://yoursunny.com/t/2020/NDNts-node-start/
Look for "bulk.js" example in this article.

Yours, Junxiao

On Tue, Mar 9, 2021, 10:10 NAVES Raphael via Ndn-interest <
ndn-interest at lists.cs.ucla.edu> wrote:

> *External Email*
>
> Hello everyone,
>
>
>
> I would like to create a consumer that sends multiple Interests (for
> different data) in parallel (approximatively 400 interests per second).
> When I say “parallel”, that means that my consummer does not want to wait
> for the answer of the previous Interest to send the next one. My problem is
> that the “processEvents” function used in most consumer examples is a
> blocking function (it waits for the data, NACK or timeout). What I did is
> that I instantiate a new thread for each Interest sending. But I get some
> problems of resource allocations because it seems that the created threads
> are not freed. I am pretty sure that there is a more proper way to do this,
> but I don’t get it.
>
>
>
> Can someone help me ?
>
>
>
> Thanks in advance
>
>
>
> Raphaël
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20210309/ff503724/attachment.html>


More information about the Ndn-interest mailing list