Giter Site home page Giter Site logo

Concurrency not in effect? about node-osmosis HOT 3 CLOSED

rchipka avatar rchipka commented on September 24, 2024
Concurrency not in effect?

from node-osmosis.

Comments (3)

rchipka avatar rchipka commented on September 24, 2024

Chaining all the GET requests in the same Osmosis instance forces them to happen in that order one at a time. If you're giving Osmosis a bunch of URLs, then request each page with a separate Osmosis instance.

osmosis
.get('http://...').set({...}).data(fn)
osmosis
.get('http://...').set({...}).data(fn)
...
osmosis
.get('http://...').set({...}).data(fn)

from node-osmosis.

rchipka avatar rchipka commented on September 24, 2024

Please use the latest changes for best results. A stack/queue incrementing issue has been fixed. The issue caused separate Osmosis instances to unnecessarily increase the request queue length.

from node-osmosis.

caccialdo avatar caccialdo commented on September 24, 2024

Thanks for the swift answer. I used your recommended pattern instead, with the latest master. Worked flawlessly.

from node-osmosis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.