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

190
Vistas
Making a clustered Node.JS app run user-created tasks every few minutes?

I'm currently using cluster with Node.js. The user will be able to send a request to the server to check on something. What I'm struggling to figure out is how to approach this.

One solution would be for the user to request the information and the server gets it for them. So every 10 minutes the user would send a request to the server. This way, it's handled automatically with express and cluster, but it's not exactly what I would prefer. I would prefer the server to have cron-like tasks that spread around the cluster.

I was thinking another solution might be to have a database with the list of user tasks to do. A cluster periodically checks the database, checks all tasks and their "last ran" time stamp, then does a task if the last ran timestamp was 10 minutes ago. I feel like there must be a cleaner solution, though.

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