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

246
Vistas
Run multiple instance of a same script in nodeJS

I'm working on a website offering scraping with Puppeteer on NodeJS, so I decided to make a website using NodeJS and Express.

The scraping script must therefore be executed once a form has been completed.

The script must therefore be executed again for each new request without canceling the previous one. Hence I don't know how much script will be loaded in advance.

I think PM2 can be a good idea but, I'm not sure if it meets my needs.

Or I could use Node.js Cluster, this would allow me to create a fork for each filled form.

Here is the tree structure of my project:

my-app/
├─ bin/
│  ├─ www
├─ node_modules/
├─ public/
│  ├─ images/
│  ├─ javascript/
│  │  ├─ scrapper.js
│  │  ├─ script.js
│  ├─ stylesheets/
├─ routes/
│  ├─ index.js
├─ views/
│  ├─ error.pug
│  ├─ index.pug
│  ├─ layout.pug
├─ app.json
├─ package-lock.json
├─ package.json
about 4 years ago · Santiago Gelvez
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