PieceMaker / steal-the-moon

A repository dedicated to demonstrating how to use the rminions R package
GNU General Public License v3.0
1 stars 2 forks source link

Fix Blocking Pop Synchronicity in Example #5

Open PieceMaker opened 5 years ago

PieceMaker commented 5 years ago

In the NodeJS example, a blocking pop is performed on the response queue so we will know instantly when a response is received. However, this blocking is being done on the connection that is also sending the requests. Therefore, even though the example is using bluebird.map, execution is happening concurrently and the example does not demonstrate decreased execution time when running multiple workers.