Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

139
Vistas
Nodejs multiple thread or process crawler

First I not know much about nodejs multi thread and multi process. But i have a idea and i'm not sure the multi-thread does achieve it.

There is a api, when call it, i will generate a list, the store all web links, the list has a big length, so i split the list like this:

const list = [1, 2, 4, 5, 6, ..., 1000]
const splitList= [[1, 2, 3], [...], ,[...], [998, 99, 1000]]

Then begin crawl the links:

let i = 0
while (i < splitList.length) {
  await Promise.all(splitList[i].map(async link => {
    crawl(link)
  }))
  i++
}

The idea is:

enter image description here

Maybe This way sounds crazy, but if it works, Will save much time.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda